Do you have a question? Post it now! No Registration Necessary. Now with pictures!
April 1, 2005, 1:04 pm
rate this thread
Re: [BEGINNER] Regex with ~
> Can someone please explain the regular expression with the tilda?
> What is being matched there?
> Thanks for your help.
> $trap++ if($st_domains =~ /~$user~/i);
> $trap++ if($st_domains =~ /~$tld~/i);
> $trap++ if($st_users =~ /~$user~/i);
Why do you ask? Is there any reason to believe that a '~' would match
anything but a '~'?
To find out which characters are special in Perl regular expressions:
(Another thing is that a tilde both before and after e.g. a username
appears odd to me.)