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 :

\>[^\<]#\<

enter image description here

but doesn't find it. does find :

enter image description here

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+ 

demo


Comments

Popular posts from this blog

java - Plugin org.apache.maven.plugins:maven-install-plugin:2.4 or one of its dependencies could not be resolved -

Round ImageView Android -

How can I utilize Yahoo Weather API in android -