View Single Post
Old 07-29-2002, 02:51 PM   PM User | #5
Centaur
New to the CF scene

 
Join Date: Jul 2002
Location: Novosibirsk, Russia
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Centaur is an unknown quantity at this point
Get the manual and read the perlre part. Understanding regular expressions is essential for text analysis.
Code:
… || $FORM{'data8'} !~ /^[0-9A-Za-z]*$/ || …
This subexpression evaluates to true if $FORM{'data8'} does not match (!~) the regular expression /^[0-9A-Za-z]*$/, which means:
  • ^ — start of text,
  • [0-9A-Za-z] — digit or letter,
  • * — repeated 0 or more times,
  • $ — end of text.
Centaur is offline   Reply With Quote