develooper Front page | perl.beginners | Postings from April 2003

RE: Escaping @ symbol inside a regular expression

Thread Previous | Thread Next
From:
Raja Kasinathan
Date:
April 29, 2003 20:41
Subject:
RE: Escaping @ symbol inside a regular expression
Message ID:
689F43A6CF84E541A721C5C3FD5ADECC26ABE6@blr-m3-msg.wipro.com


> -----Original Message-----
> From: Rob Dixon [mailto:rob@dixon.nildram.co.uk] 
> Sent: Tuesday, April 29, 2003 7:38 PM
> To: beginners@perl.org
> Subject: Re: Escaping @ symbol inside a regular expression
> 
> 
> Raja Kasinathan wrote:
> > As Sudarshan Raghavan told
> > s/(^|\s)\@interrupt\b//gi; works.
> >
> > Thanks to the group for providing the solution.
> 
> Raja.
> 
> This will remove the whitespace character before
> your string as I said in another post. This:
> 
>     s/(^|\s)\@interrupt\b/$1/gi
> 
> will put it back again!
> 
Thanks a lot Rob!. That fixed the whitespace removal problem.
Cheers,
Raja
> 
> 
> 
> 
> -- 
> To unsubscribe, e-mail: beginners-unsubscribe@perl.org
> For additional commands, e-mail: beginners-help@perl.org
> 
> 

**************************Disclaimer************************************

Information contained in this E-MAIL being proprietary to Wipro Limited is 
'privileged' and 'confidential' and intended for use only by the individual
 or entity to which it is addressed. You are notified that any use, copying 
or dissemination of the information contained in the E-MAIL in any manner 
whatsoever is strictly prohibited.

***************************************************************************

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About