.net - Problem with c# regular expression for extracting meta tags -


I have this regular expression that removes meta tags from HTML documents but when I add it to my web application Errors occur.

Expression is

  @ "Meta [\\ s] + [^> gt;] * * Name [\\ s] = = [\\ S \ "\ '] + (. *?) [\\ s \" \'] content [\\ s]? = [\\ s \ "\ '] + (. *?) [\" \'] + * & Gt;. ";  

Is there anything wrong with this?

You should avoid both of the @ (glossary string) syntax and your slashes in the sample you posted You need to avoid double quotes by removing or removing extra slashes and doubling, then it should work.

(What is this for, if you are working regularly on regular basis, I suggest investing in copy.)


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -