RE: regex for &
- From: Marco.vanKammen@xxxxxxxxxxxx ("Kammen van, Marco, Springer SBM NL")
- Date: Thu, 30 Oct 2008 11:11:47 +0100
fail).-----Original Message-----
From: Brent Clark [mailto:brentgclarklist@xxxxxxxxx]
Sent: Thursday, October 30, 2008 10:57 AM
To: beginners@xxxxxxxx
Subject: regex for &
Hiya
I have three sentences.
This is a nice hotel.
The view & food is good.
We are at the Victoria & Alfred Hotel.
I need a perl regex / code to not print out sentence 2 (basically
This is what I so far.
print $_ if $_ !~ /\&|Victoria \&/ig;
Im struggling to get this right.
TIA.
Regards
Brent Clark
This should work....
if ($_ !~ /^We are at the Victoria \& Alfred Hotel./) {
Marco
.
- References:
- regex for &
- From: Brent Clark
- regex for &
- Prev by Date: regex for &
- Next by Date: Re: regex for &
- Previous by thread: regex for &
- Next by thread: Re: regex for &
- Index(es):
Relevant Pages
|