Questions #Tagged [regex]

Questions: 2

What will be the regex to replace/remove specific HTML pattern/string from a source string?

Below regex pattern can be used to get the required output:<br><pre><xmp>return Regex.Replace(givenstring, $"<(.|\n|{Environment.NewLine})*?>", String.Empty);</xmp></pre>


#html     #regex    

In Python what will be the output of below code snippet?

The output of the above code snippet with the pattern is below :<br> <pre><xmp>['2019', '2019', '2014', '2020', '2016']</xmp></pre>


#python     #regex