Not sure this is the group I should ask my question. I have this
string: [[_src|_alternate]]
and I would like to have a RegEx pattern to replace it with: <a
href="_src">_al ternate<a/(wiki way)
I know so far to process [[some info]]
<code>
function ParseContent(by val sText as string)
Dim oregexp As New Regex("\[\[([^\]]+)\]\]")
Return oregexp.Replace (sText, "<a>$1</a>")
end function
</code>
ParseContent("T his is a [[linq]] for you.") will output
<code>
This is a <a>linq</afor you.
</code>
Thanks,
xke
string: [[_src|_alternate]]
and I would like to have a RegEx pattern to replace it with: <a
href="_src">_al ternate<a/(wiki way)
I know so far to process [[some info]]
<code>
function ParseContent(by val sText as string)
Dim oregexp As New Regex("\[\[([^\]]+)\]\]")
Return oregexp.Replace (sText, "<a>$1</a>")
end function
</code>
ParseContent("T his is a [[linq]] for you.") will output
<code>
This is a <a>linq</afor you.
</code>
Thanks,
xke
Comment