Posted by lkrubner on 11/11/01 11:30
>What is this function supposed to do? Exactly what pattern(s) are you
>trying to match or test for? It's identifier suggests that it should
>look for some aspect of a floating-point number (though it's not clear
>what), yet your pattern allows integers as well.
Thank you for help. I apologize for asking such a poor question. I've a
simple one to follow up with: how do you say "not" in regex? Is it "^"?
I've decided that all I want to do is make sure there are no letters in
the input. Is it right to say this:
$pattern "[^A-Za-z]";
$match = preg_match ($pattern, $subject);
This comes back true if there are no letters in $subject, yes?
Navigation:
[Reply to this message]
|