View Single Post
Old 09-03-2011, 08:21 AM   #5
Jabby
Jr. - Junior Member
Jabby ought to be getting tired of karma fortunes by now.Jabby ought to be getting tired of karma fortunes by now.Jabby ought to be getting tired of karma fortunes by now.Jabby ought to be getting tired of karma fortunes by now.Jabby ought to be getting tired of karma fortunes by now.Jabby ought to be getting tired of karma fortunes by now.Jabby ought to be getting tired of karma fortunes by now.Jabby ought to be getting tired of karma fortunes by now.Jabby ought to be getting tired of karma fortunes by now.Jabby ought to be getting tired of karma fortunes by now.Jabby ought to be getting tired of karma fortunes by now.
 
Posts: 575
Karma: 2000358
Join Date: Aug 2010
Location: East Texas
Device: Archos, Asus, HP, Lenovo, Nexus and Samsung tablets in 7,8 and 10"
Quote:
Originally Posted by Perkin View Post
Change Toxaris' find to

Code:
<p class="calibre10"><span class="calibre12 bold">(\d+)</span></p>\s+<p class="calibre2"><span class="calibre4 bold">(.+)</span></p>
The replace will be the same.
In the above example, what would be the difference between (.+) and (.*). The various tutorials I've read talk about "greedy", "non-greedy", "lazy" and "reluctant" but I can't figure out precisely what they mean. What about \s* instead of \s+ - would that work?

Just trying to figure this regex stuff out.

Regards - John
Jabby is offline   Reply With Quote