-
Notifications
You must be signed in to change notification settings - Fork 27
Capture Groups? #24
Comments
@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 |
That helped, but it won't insert the first |
Hmm. I wonder if your first |
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: |
I'm trying to tag the title of the chapters in the Voyage narrative. I have
\</l\>(\n^.*\n^.*)
that selects the chapter name after the CHAP. which is tagged with<l></l>
but when I try to replace the\</l\>(\n^.*\n^.*)
with<l>\1</l>
it says that it's a malformed expression and won't replace it.The text was updated successfully, but these errors were encountered: