Thread: Regex examples
View Single Post
Old 02-20-2012, 06:48 PM   #8
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 27,548
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by theducks View Post
Keyword Quantifier
Code:
<span class="italics">(\w+){2,}</span>
2 or more
That seems to be finding all occurrences of <span class="italics"></span> that enclose 2 or more word characters. And it's still returning one-word instances, while skipping things like:
Code:
<span class="italics">Three weeks later</span></p>
And definitely skipping multiple word instances that contain punctuation and/or quotes:
Code:
<span class="italics">Well, dammit, it’s been two days.</span>
What else ya got?
DiapDealer is offline   Reply With Quote