Thread: Regex examples
View Single Post
Old 04-08-2012, 05:09 AM   #36
mmat1
Det
mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.
 
mmat1's Avatar
 
Posts: 980
Karma: 1300318
Join Date: Jan 2012
Location: Zischebattem
Device: Acer Lumiread
Quote:
Originally Posted by roger64 View Post
I would like some advice about the simplest way to chain these two regexes (and presumably more). To play 1 and after 2.
I'll try a shot

Code:
<p class="let">([A-Z])((.[^ ]{0,20}[ ]){4})
<p class="let"><span class="let1"><span class="let2">\1</span></span><span class="smcpTypeV">\2</span>
It's not tested though, and there are nested () which should be \2.

If iunderstand correctly, you're looking for a word after "<p class="let">", then you format the first letter someway and the rest in an other way, right ? Can you give a text-sample ?
mmat1 is offline   Reply With Quote