If you're using CFMX, you want something like this: (\[quote who="([^"]*)"\].*?\[/quote\]*)
HTH --Ben Tony Hicks wrote: > Hi guys, been a long time since I posted here. > > I'm trying to write some bbml-style code.. Its working great for tags > that don't have closing counterparts.. but for ones that do, I have a > problem. > > My text is: > > [quote who="Tony1"]Quote 1[/quote] > [quote who="Tony2"]Quote 2[/quote] > [quote who="Tony3"][quote who="Tony4"]Quote 4[/quote][/quote] > > My regex is: > > (\[quote who="([^"]*)"\][/quote].*\[/quote\]*) > > What I'd like it to do is replace each line with something.. The > problem is that it finds the entire thing... all four quotes.. so the > quoted text is: > > ---Begin--- > Quote 1[/quote] > [quote who="Tony2"]Quote 2[/quote] > [quote who="Tony3"][quote who="Tony4"]Quote 4[/quote] > ---End--- > > I would assume, of course, that the regex should find the first > match.. Is there a way to do this? I've seen Depressed Press of > Boston's code and its good.. but like the author has said, its huge... > its slow for a tool, but its quick for what it is. > > Thoughts? > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net http://www.cfhosting.net Message: http://www.houseoffusion.com/lists.cfm/link=i:4:188823 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

