Matching any Character

Domain Hosting image
Web Hosting
Dedicated server
ssl certificate
Web Design image
Email

If you don't know which character you want to match, you use a period as a wildcard character. For example, if you want to match "the letter N followed by any character followed by the letter T," you would use

if($Test =~ /N T/) ...

This code returns true for"NET" and "N3T' and "N+T", but returns false for"NEST* (because NEST has two characters between the "N" and the "T"). Note that the example would return false for "net" (because upper and lowercase characters are considered different in regular expressions).



Domain Name Search

www.


Copyright (C) 2007. Web Domain design hosting. All rights reserved.