0

i am new to C# i want to replace Figure 1, Figure 2....... with <a href="#fig1">Figure 1</a>....... i used the following code but no desired output

{
string targetId = "1";
            string pattern = @"(?<=<a[^>]+href=""Figure\?mId=(?<Id>" + targetId + @")(?="">)";
            string replace = "<a href>Figure</a>?pId=${Id}";
            string result = Regex.Replace(input, pattern, replace);
            }

please help me

2
Contributors
1
Reply
31
Views
5 Years
Discussion Span
Last Post by Momerath
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.