RE: WELCOME to [email protected]

"Mark Morgan" <[email protected]> Fri, 25 Apr 2003 09:51:21 -0600
Newsgroups gmane.comp.jakarta.oro.user
Message-ID <[email protected]>
Sue -

Sorry to cut off that last message prematurely.  The logic here is that
the "(.*)" pattern is going to match as many character as is can, thus it
goes out to the last quote.  By putting the ? in, it makes it match the 
first quote, not the last.


|
|  Mark Morgan
|  Programmer
|  T H E   Z A N E R A Y   G R O U P ,  I N C .
|
|  [email protected]
|
|  40 2nd Street East
|  Suite 225
|  The KM Building
|  Kalispell, MT 59901
|  406.257.7771
|  406.257.7798 Fax
|
|   http://www.zaneray.com
|



-----Original Message-----
From: Sue Polyson Evans [mailto:[email protected]]
Sent: Friday, April 25, 2003 9:51 AM
To: [email protected]
Subject: Re: WELCOME to [email protected]


Hello,
Here is my problem.  I'd appreciate any help.

I have the string:
src="some.gif" alt="some information" width="100"

I want to capture in a subgroup the value of whatever comes after src= and 
is contained within the first set of quotes.  In the example above, it 
would be some.gif

I am using the Perl5 contains with the expression:
src="(.*)"

which produces the result:
Match 1: src="some.gif" alt="some information" width="100"
     Subgroups:
     1: some.gif" alt="some information" width="100

Which isn't what I want.   I want only
     Subgroups:
     1: some.gif

Can anyone tell me what I'm doing wrong?

Again, thanks in advance for any help.

- Sue Evans
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]