The problem that you are encountering is because you have put <br> in square brackets []. This makes <br> a character class.
If I understand what you are trying to do, what you are looking for is something like: ^((<br>)*[[:space:]]*)* This looks for as many <br>'s and spaces as it can find at the very beginning of the string. If you are using backreferences, be careful, as this uses nested repeated groupings. HTH. As always, the plug for CF-RegEx: http://www.houseoffusion.com/cf_lists/index.cfm?method=threads&forumid=21 Join, post, and read the archives here. --Ben Doom Programmer & General Lackey Moonbow Software : -----Original Message----- : From: Jim Curran [mailto:jim_ml@;nylontechnology.com] : Sent: Thursday, October 17, 2002 6:29 PM : To: CF-Talk : Subject: OT RegEx Help : : : Hello all, : : Simple Regex that I cannot decipher: : : String: : : <br> <br> <br> <b class="myClass">text</b> : : Regex: : : ^[(<br>)[:space:]]+ : : I want to match: : : <br> <br> <br> : : But it matches: : : <br> <br> <br> <b : : I thought that the parens were dealt with as a group, but that seems not : to be the case here. : : Any help would be fantastic. : : - jim : : ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Get the mailserver that powers this list at http://www.coolfusion.com

