Non greedy regular expression
Posted: Tue Feb 19, 2002 12:22 am
Hi!
If I have this:
<FONT COLOR="#cccccc">alot of text</FONT> alot of text <FONT COLOR="#cccccc">more text</FONT>
And this pattern:
<FONT COLOR="#cccccc">(.*?)<\/FONT>
And replace it with:
[hub]\1[/hub]
Then it would end up like this:
[hub]alot of text</FONT> alot of text <FONT COLOR="#cccccc">more text[/hub]
I want it to be:
[hub]alot of text[/hub] alot of text [hub]more text[/hub]
Is it possible?
Im running textPad version 4.5.0
Help!
///Brimba
If I have this:
<FONT COLOR="#cccccc">alot of text</FONT> alot of text <FONT COLOR="#cccccc">more text</FONT>
And this pattern:
<FONT COLOR="#cccccc">(.*?)<\/FONT>
And replace it with:
[hub]\1[/hub]
Then it would end up like this:
[hub]alot of text</FONT> alot of text <FONT COLOR="#cccccc">more text[/hub]
I want it to be:
[hub]alot of text[/hub] alot of text [hub]more text[/hub]
Is it possible?
Im running textPad version 4.5.0
Help!
///Brimba