You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oro-user@jakarta.apache.org by Mark Morgan <ma...@zaneray.com> on 2003/04/25 17:48:41 UTC

RE: WELCOME to oro-user@jakarta.apache.org

Sue -

You need a non-greedy match:

src="(.*?)"


|
|  Mark Morgan
|  Programmer
|  T H E   Z A N E R A Y   G R O U P ,  I N C .
|
|  mark@zaneray.com
|
|  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:spolyson@vcu.edu]
Sent: Friday, April 25, 2003 9:51 AM
To: oro-user@jakarta.apache.org
Subject: Re: WELCOME to oro-user@jakarta.apache.org


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
spolyson@vcu.edu



---------------------------------------------------------------------
To unsubscribe, e-mail: oro-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: oro-user-help@jakarta.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: oro-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: oro-user-help@jakarta.apache.org