R
Rob Meade
Hi all,
Back on the bbcode parsing (again)...
Having a few problems now with nested tags - it would seem that I had
written my test string in a way that worked perfectly with the parser -
until I changed the order of the parser - then it stopped working...
I'm assuming my problem is down to things like this:
' define BOLD tags text
strPattern = "\[b\]([^\]]+)\[\/b\]"
in my pattern I have
([^\]]+)
which I believe means "match any of the characters not enclosed", as a
result when I have:
Google
I get a nice hyperlink, but with and at either end (not converted
to <b> and </b> etc)...
If I take out the above then it just wont work at all as it'll start ending
tags all over the place, does anyone have any ideas on how I can achieve
what I want to achieve? I've next to nothing online regarding ASP and
bbCode, seems mainly php...
Any info appreciated,
Regards
Rob
Back on the bbcode parsing (again)...
Having a few problems now with nested tags - it would seem that I had
written my test string in a way that worked perfectly with the parser -
until I changed the order of the parser - then it stopped working...
I'm assuming my problem is down to things like this:
' define BOLD tags text
strPattern = "\[b\]([^\]]+)\[\/b\]"
in my pattern I have
([^\]]+)
which I believe means "match any of the characters not enclosed", as a
result when I have:
I get a nice hyperlink, but with and at either end (not converted
to <b> and </b> etc)...
If I take out the above then it just wont work at all as it'll start ending
tags all over the place, does anyone have any ideas on how I can achieve
what I want to achieve? I've next to nothing online regarding ASP and
bbCode, seems mainly php...
Any info appreciated,
Regards
Rob