Karan Thakkar

Karan Thakkar

  • 1.4k
  • 204
  • 86.3k

Regex syntax error in c#?

Jan 16 2019 11:46 PM
I am getting links in email.
 
there are two types of links, In some link there is = in link and sometime there is == in links
and its possible that there may be === in link how should I code for it.
 
Below is my code, please help me out of this problem?
 
This code will only work when there is one = at the end of the link, not when there are == or 
 
Regex emailRegex2 = new Regex(@"\b(?:https:\/\/www.xyz.com\/onlinedownload)\S+\b=", RegexOptions.Compiled | RegexOptions.IgnoreCase);

Answers (4)