It looks like it also matches on more than one image ..  so the first
element needs to be specified on the pattern match..

I think this will work:

var pattern = /joyimages\/\S+.[jpg|png|gif]/ig;
var result = sBody.match(pattern)[0];

FWIW..

Monty

----- Original Message ----- 
From: "Kim Gräsman" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, July 24, 2004 3:47 AM
Subject: RE: [DQSD-Users] FW: Comx update adds User Friendly & Joy of Tech


> Hey Gregory,
>
> There seems to be a weird inconsistency with the Joy of Tech site - all
> images have been .png's up until the last one, which is a .jpg all of a
> sudden... So, the regex no longer matches anything for Joy of Tech. I
don't
> know if they change the image format intermittently or if they've switched
> for .jpg for good.
>
> I'll see if I can patch the search so it accepts both formats for now.
>
> Kim
>
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] On Behalf Of
> > Gregory Krohne
> > Sent: den 23 juli 2004 14:48
> > To: [EMAIL PROTECTED]
> > Subject: [DQSD-Users] FW: Comx update adds User Friendly & Joy of Tech
> >
> > Forwarding the original message. No clue why it didn't show
> > up on the list the first time.
> >
> > -----Original Message-----
> > From: Krohne Gregory Contr AFRC/SCOS
> > Sent: Monday, July 19, 2004 3:36 PM
> > To: 'dqsd-users-at-lists.sourceforge.net |DQSD Email|'
> > Subject: Comx update adds User Friendly & Joy of Tech
> >
> >
> > An office mate updated the comx search to include User
> > Friendly and the Joy
> > of Tech, but he didn't want to sign up for the mailing list
> > to post it. So,
> > here it is.
> >
> > Regards,
> > Gregory krohne
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by BEA Weblogic Workshop
> FREE Java Enterprise J2EE developer tools!
> Get your free copy of BEA WebLogic Workshop 8.1 today.
> http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
> _______________________________________________
> To unsubscribe visit:
> https://lists.sourceforge.net/lists/listinfo/dqsd-users
> [EMAIL PROTECTED]
> http://sourceforge.net/mailarchive/forum.php?forum_id=8601
>



-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_idG21&alloc_id040&op=click
_______________________________________________
To unsubscribe visit:
https://lists.sourceforge.net/lists/listinfo/dqsd-users
[EMAIL PROTECTED]
http://sourceforge.net/mailarchive/forum.php?forum_id†01

Reply via email to