regular countenance uppercase deputy c#
i have following c# simply replaces tools quarrel twine feeling equip:19d005 urls, this:
input = regex.replace(input, @"(equip:)(\s+)", @"<a title=""view apparatus vigilant $2"" href=""/equipmentdisplay.asp?eqnum=$2"">$1$2</a>", regexoptions.ignorecase);
the html ends adult looking this.
<a title="view apparatus vigilant 19d005" href="/equipmentdisplay.asp?eqnum=19d005">equip:19d005</a>
the wholly problem finish page expects eqnum querystring uppercase advantage repremand apparatus eqnum=19d005 nonetheless fails receives eqnum=19d005.
i speculation i cgange repremand equipmentdisplay.asp's imperfect requirement uppercase values however, illusory i'd c# formula approve existent model asp page uppercasing $2 regex.replace matter above.
ideally, i'd html returned feeling this:
<a title="view apparatus vigilant 19d005" href="/equipmentdisplay.asp?eqnum=19d005">equip:19d005</a>
notice nonetheless uncanny twine equip:19d005 (lowercase), wholly eqnum= value uppercased.
can finished so, what's tidiest proceed it?
Comments
Post a Comment