Thread
:
Ungreedy matching in S&R
View Single Post
01-18-2014, 12:04 PM
#
3
theducks
Well trained by Cats
Posts: 31,134
Karma: 60406498
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
The trailing '?' is a ungreedy quantifier
I regularly use:
for spelled numbering
Code:
(Chapter .+?)\w+
for digit numbering: (no need to worry about closing spans with this
Code:
(Chapter \d+)
theducks
View Public Profile
Find More Posts by theducks
Track Posts by theducks via RSS