visual studio 2010 - MultiLine Regex search in VisualStudio? -
i need insert db text literals in web page.
looking @
<article> <h2 class="f5_heading"> marketing </h2> </article>
i need find "marketing"
so did regex search in visual studio search :
\>[^\<]#\<
but doesn't find it. does find :
notice : there no line breaks .
question:
i don't understand why doesn't find in first regex :
the [^\<]#
means : anything not closing tag characters.
how can enhance regex match multilines ?
you can use following regex
(?<=>)\n?\s*\w+
the above match "marketing" , spaces before it. in c# want like
(?m)(?<=>)\n?\s*\w+
Comments
Post a Comment