Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Replacing between and

Status
Not open for further replies.

webmigit

Programmer
Aug 3, 2001
2,027
US
Ok, I generally try to simplify my questions into the most basic form but attempts at this have failed so I've got to explain this fact for fact...

I've got a code structure similar to phpBB's bbml.. and also similar to this site's TGML..

Here's what I wanna do...

Code:
[b]test[/b]
= test which works fine.. except that suppose my post looks like this:

Code:
[B]test[/B] [B]it[/b]
comes out test
Code:
[/b] [b]it

Any ideas? I want to match on each set not find the very first opener and the very last closer as it is currently doing...

Tony Did I help?
Vote!
 
Perhaps your parsing script is using REReplace() rather than REReplaceNoCase()?
 
ah the capital's thing was my mistake, but no, its ReReplaceNoCase().. Did I help?
Vote!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top