mark-
i personally think they shouldnt have given you the answer.
there is a difference between trying and needing pointers asnd asking others to write.
what i see her is asking others to write... like a script kiddie. there is no evidence of trial
i mentioned before i understand that regexp is not an easything to learn, but it's not rocket science either.
go get a good regexp book
also search on here
searches on here done just now.....
'regexp' Search found 168 matches
'regular expressions' Search found 950 matches
http://www.google.com/search?hl=en&q=bo ... gle+Search
next time search and look and tell us how you're thinking about it. break down the code. here's an example:
$variable=preg_match($input, $regexp);
the input is a line of code
i'm looking for numbers 0 to 9 in order
this is what i came up with
$regexp='/[0-9]/';
this is matching anything with a number, not 0 to 9 in order. could you help?
in that we see that you know what the input should be. you know what you're looking for. you also show us what you have and we can see why. we can realize a bit about your pattern matching. we can point you in the right direction so that you learn.
instead, what you give is the equivalent of "i have thos line [some php line] and it's not working. somone make it find xyz for me"
do you see why people are telling you tofind a book? if you've been doing this for a while, i'm suprised the mods are putting up with you. why? you were obviously rude to feyd at some point. i've never seen him post like that before this thread. he's always been one fo the most understanding and helpful people on this site. for him to be <span style='color:blue' title='I'm naughty, are you naughty?'>smurf</span> at you, you've been asking a lot and showing no signs at all of learning.... and probalby none for caring to learn