Re: A simply regex question
- From: "Paul Lalli" <mritty@xxxxxxxxx>
- Date: 16 Jul 2006 04:51:25 -0700
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
.
- Follow-Ups:
- Re: A simply regex question
- From: Franzl Wisseworst
- Re: A simply regex question
- References:
- A simply regex question
- From: Franzl Wisseworst
- A simply regex question
- Prev by Date: Re: How get UTF-8 from urlencoded web form
- Next by Date: Re: how to sort a array?
- Previous by thread: A simply regex question
- Next by thread: Re: A simply regex question
- Index(es):