What's a quick and real neat way of....
Piers Harding
piers at ompa.net
Wed Nov 6 00:55:54 CST 2002
just a little tweaking - but there is mtowtdi....
my ($abcd, $thisisabcd) = $var =~ /.*\/([^\/]*)\.jpg[,\s]+(.*)$/;
Cheers.
On Wed, Nov 06, 2002 at 04:59:25PM +1300, Enkidu wrote:
> .....extracting the abcd and the string "This is abcd" from the
> following:
>
> $var = "blah/blah/blah/abcd.jpg, This is abcd" ;
>
> What I've come up with so far is:
>
> $var = /.*\/(.*).jpg,(.*)$/ ;
>
> Of course, I'm going to try it out when I get a chance, but what are
> my chances of success? abcd varies as does the string.
>
> Cheers,
>
> Clif
> --
>
> The Nats held a Party and no one came.
More information about the Wellington-pm
mailing list