X
xkeops
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">_alternate<a/> (wiki way)
I know so far to process [[some info]]
<code>
function ParseContent(byval sText as string)
Dim oregexp As New Regex("\[\[([^\]]+)\]\]")
Return oregexp.Replace(sText, "<a>$1</a>")
end function
</code>
ParseContent("This is a [[linq]] for you.") will output
<code>
This is a <a>linq</a> for you.
</code>
Thanks,
xke
string: [[_src|_alternate]]
and I would like to have a RegEx pattern to replace it with: <a
href="_src">_alternate<a/> (wiki way)
I know so far to process [[some info]]
<code>
function ParseContent(byval sText as string)
Dim oregexp As New Regex("\[\[([^\]]+)\]\]")
Return oregexp.Replace(sText, "<a>$1</a>")
end function
</code>
ParseContent("This is a [[linq]] for you.") will output
<code>
This is a <a>linq</a> for you.
</code>
Thanks,
xke