View Single Post
Old 03-03-2015, 06:27 PM   #5
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Quote:
Originally Posted by theducks View Post
are you supposed to escape the \3
No -- you escape the 3 by saying \3 and making it special...

Quote:
Originally Posted by jhowell View Post
That RE will also match the following text:

<h1>title</h1>this has <b>bold</b> text.<h2>subtitle</h2>
True, which is why I prefer to search for rendered text with
Code:
[^<>]+
instead of
Code:
.+
But the main issue is capturing the right backreferences.
eschwartz is offline   Reply With Quote