regex for &
- From: brentgclarklist@xxxxxxxxx (Brent Clark)
- Date: Thu, 30 Oct 2008 11:56:49 +0200
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 fail).
This is what I so far.
print $_ if $_ !~ /\&|Victoria \&/ig;
Im struggling to get this right.
TIA.
Regards
Brent Clark
.
- Follow-Ups:
- RE: regex for &
- From: Stewart Anderson
- Re: regex for &
- From: "Rob Coops"
- RE: regex for &
- From: "Kammen van, Marco, Springer SBM NL"
- RE: regex for &
- Prev by Date: Hi all
- Next by Date: RE: regex for &
- Previous by thread: Hi all
- Next by thread: RE: regex for &
- Index(es):
Relevant Pages
|