guitardave78
Programmer
Hi All
I have the following that will take [yarslink]LINK[/yarslink]
and turn it to
<a href="LINK">LINK</a>
I would like the option to also do it this way
[yarslink url="URL"]LINK[/yarslink]
<a href="URL">LINK</a>
Any takers?
}...the bane of my life!
I have the following that will take [yarslink]LINK[/yarslink]
and turn it to
<a href="LINK">LINK</a>
Code:
oRegExp.Pattern = "\[yarslink\]((.|\n)*?)\[\/yarslink\]"
str = oRegExp.Replace(str, "<a href=""$1"" target=""_blank"">$1</a>")
[yarslink url="URL"]LINK[/yarslink]
<a href="URL">LINK</a>
Any takers?
}...the bane of my life!