Extract part of a string
- From: roopa.pd@xxxxxxxxx
- Date: 30 Apr 2007 06:21:27 -0700
Hi,
I want to extract everything between the hash signs in the following
string
"### This is a test ###"
I am using the following..
if($desc=~ /\#{3}(.*?)\#{3}/ )
{
print $1;
}
I am not getting the desired result. Please tell me what I am doing
wrong.
Thank you,
Thendral
.
- Follow-Ups:
- Re: Extract part of a string
- From: Paul Lalli
- Re: Extract part of a string
- Prev by Date: Mac::Carbon Bug
- Next by Date: Re: creating hash from scalar variable
- Previous by thread: Mac::Carbon Bug
- Next by thread: Re: Extract part of a string
- Index(es):