Comments (4)
@brookestewart Sorry I didn't see this until now, though I'm surprised I'm awake! Yes, when I try your expression for the "Find" window here, I see your expression works to match on the lines you want, but right, the Replace tells you the "match is not possible." There's a reason for this. The capturing group ( )'s don't let you include the caret or dollar sign that signal the literal start and end of a line. Your match works for me without the ^ symbols since you are already pulling up a \n character. The \n character is allowed inside a capturing group. So if I run \</l\>(\n.*\n.*)
in the Find window, I'm able to insert the capturing group in my Replace with \1. Hope that helps!
from dhclass-hub.
That helped, but it won't insert the first <l>
when I replace it, I don't know why. Also, I'm having trouble capturing dates within brackets that continue over a line. Nothing I try seems to work.
from dhclass-hub.
Hmm. I wonder if your first <l>
Is actually there but it's not sitting exactly where you expect? I am not in front of a computer right now, so I can't test this, but my hunch is that the positioning of \n in the replace is causing your tags to be spread out.
from dhclass-hub.
As for dates, remember how you matched on quotations that spanned over multiple lines in the Blithedale Regex (Regex Exercise 2)? Matching on square brackets and their internal content is similar, but you have to escape the square bracket, which has a special meaning in Regex!
I did the dates in a couple of passes, because some of them are stacked together like so:
[...][...] . Oh--I remember you need to insert a literal space (pressing the space bar) in the replace window if you want to replace ][ with a white space.
from dhclass-hub.
Related Issues (20)
- HTML Semantic Elements for structuring a page
- Steve Ramsay: "The Hermeneutics of Screwing Around" and "In Praise of Pattern" HOT 13
- NEWS HOT 2
- XPath format-date() picture strings
- First XQuery over Banksy from class today
- Saving XQuery Files
- Network Analysis HOT 16
- Schematron Quick Fix HOT 1
- SOS: Cytoscape is my mortal enemy HOT 8
- M 3/23 Class Sign-in HOT 12
- Slack Chat for DH class
- Semester project presentations HOT 1
- zoom video HOT 3
- Date Arithmetic for Data Visualization: User-Defined Functions in XQuery
- Resources on JavaScript Properties, Methods, Events
- Upcoming Presentations!
- Choose a Creative Commons License for Your Project
- Friday April 17: Presentation Day and Feedback!
- XPath: Taking Average of values derived by a FLOWR statement HOT 8
- Extended due date for semester projects in the quarantine semester
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dhclass-hub.