I search for patterns like this number+space+number+space+anything
If have this right now:
if( preg_match( '[0-9][ ][0-9][ ].', $searchString ) )
0 0 asdf
1 0 asdf
0 30 adsf asdf
22 0 a
[0-9] only accepts the integers 0,1,2,3,4,5,6,7,8,9. For any integer, you need to allow one or more repetitions of
[0-9]. If you use the shortcut
[0-9] then you can write it as
\d+ \d+ .*
+ symbol means One or more repetitions.
Note: It seems like your new to reg expression. Try out this free regex tutorial.