Please help I am working for more than 3 hours now this problem but I can't think or find way to correct it... my regular expression is like this
PHP Regular express problem
5
Please help I am working for more than 3 hours now this problem but I can't think or find way to correct it...
my regular expression is like this
%<h[^>]+>(.*)</h.>%i
It works perfectly if the string look like this
Result : <A NAME="SECTION000300000000000000000">2 Simple Patterns</A></H1>
But if string will look like this
Result : None
I guess the problem is the line break or not sure..
Thanks in advance
my regular expression is like this
%<h[^>]+>(.*)</h.>%i
It works perfectly if the string look like this
Code:
<H1><A NAME="SECTION000300000000000000000">2 Simple Patterns</A></H1>
But if string will look like this
Code:
<H1><A NAME="SECTION000300000000000000000">2 Simple Patterns </A> </H1>
I guess the problem is the line break or not sure..
Thanks in advance
- Spencer Westwood
- kblessinggr Banned
- xga
- [1] reply
- xiaophil
- [1] reply
Next Topics on Trending Feed
-
5