Forum Moderators: coopster
I'm running a script with a preg_match_all like :
preg_match_all('/blabla (.+?)\/(.+?)\//im',$blafiltered,$blais);
I use this to get text like bla1/bla2/bla3
The first preg_match works and I get the result bla1 and bla2. If I run the second preg_match below it doesn't work (I want to have all 3 bla's)
preg_match_all('/blabla (.+?)\/(.+?)\/(.+?)\//im',$blafiltered,$blais);
The only difference is that bla1 and bla2 are on the same line and bla3 is on another line. How can I fix my script?
Turbo
preg_match_all('/blabla (.+?)\/(.+?)\//ims',$blafiltered,$blais);