Regular expression to match a string in C#
-
Hi all, I want to match a string let say {begin}
{=LinkName=} {end} from {begin} to {end} and put it in a variable so that I can replace the value of {=NavLink=} and {=LinkName=} coming from the database... Can you please help me to find the exact regular expression syntax.. Thanks in advance for your help... Suman Singh
-
Hi all, I want to match a string let say {begin}
{=LinkName=} {end} from {begin} to {end} and put it in a variable so that I can replace the value of {=NavLink=} and {=LinkName=} coming from the database... Can you please help me to find the exact regular expression syntax.. Thanks in advance for your help... Suman Singh
Are you trying to parse your own markup to make dynamic links? Just use the asp hyperlink if that is the case. otherwise, read in the text line by line and do: myString.Replace("{=NavLink=}", "What you want here");