Conditional preg_match in PHP?

This one works for your dataset as you can see here.

S?(\d. +)-(\d. +)$ This one works for your dataset, as you can see here.

This fails on af 0.5-9 – diEcho Mar 9 at 16:20 Well, no. At least, not on RegexPal. – seriousdev Mar 9 at 16:22 This is almost correct.Thx.

But the result array returned differs when "af" is given or not. Have to check if the result start with "af" again. And can you explain the reg exp above?

– joetsuihk Mar 13 at 17:10 @joetsuihk: For an explaination of the regex please use one of the following tools stackoverflow. Com/questions/89718/… – mario Mar 13 at 17:37 1 @joetsuihk (?:blahblah) is a non-capturing group. – seriousdev Mar 16 at 16:42.

Instead of \d+ use \d{2,} which will matches two or more digits. /^fF\d+\s+? AF?

\s+?(\d{2,}(\. \d{1,2})? -\d{2,}(\.

\d{1,2})? ).

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions