Page 1 of 1
Regex problem
Posted: Tue Dec 04, 2007 11:48 pm
by kusal
Here is my problem
<h4 Bla Bla Bla Bla Bla Bla
Bla Bla Bla Bla Bla
Bla Bla Bla Bla Bla Bla
Bla Bla Bla Bla </h4>
I want the content between <h4> tags in a variable, using only one expressions
thnx
Kusal
Posted: Tue Dec 04, 2007 11:49 pm
by feyd
What have you tried? Have you read any of the previous examples that show how to match the content of a specific tag?
Posted: Wed Dec 05, 2007 12:05 am
by kusal
I did not read previous examples,
I can do it line by line, what want is a way to ignore \n so that I can get it from one expression.
lines between <h4> tags chage, thats the problem
Posted: Wed Dec 05, 2007 12:14 am
by feyd
What is your current pattern?
Posted: Wed Dec 05, 2007 12:24 am
by kusal
I don't have a clue how to write this

Posted: Wed Dec 05, 2007 2:02 am
by s.dot
The m modifier will look past the \n's

Have a look at the
regex crash course part 1 by chris corbyn
That should help make your task a little bit easier.
Posted: Wed Dec 05, 2007 11:42 pm
by kusal
Got it, s modifier is the one that did the trick
Thank you guys for your help
