Re: A simply regex question



Franzl Wisseworst wrote:
How can I figure if my DOCUMENT_URI contains a substring, eg.:

if ($ENV{"DOCUMENT_URI"} contains string "mein.totenkopf.de"){
do something...;
}

And is there a way to ignore case, so the substring could be
"mein.totenkopf.de" or "MEIN.TOTENKOPF.DE" for example?

This is not meant to sound rude, but if you have to ask this question,
then you haven't read even a decent tutorial on Perl yet. You should
do so. Open a command line, and type "perldoc perlintro".

Pay attention to the part on "pattern matching" and/or "regular
expressions".

Paul Lalli

.