At 17:33 01/10/2003 -0700, you wrote:
>I have a URL I'm grabbing ...
>
>http://ww.mysite.com/VENTURA-435672_123-1.jpg
>
>I'm actually only interested in grabbing the "435672_123" part.
>
>REReplace(myURL, "([-])([0-9]{6,}[_][0-9]{3})([-])", "\2", "ONE")
>
>But all that does is drop the dashes from around the number I want ... how
>do I grab out just "435672_123"?

This seems to do the trick:

REReplace(myURL, "[^-]+-([0-9]{6,6}_[0-9]{3,3})-.+", "\1", "ONE")

Also a possibility:

ListGetAt(myURL, 2, "-")


Gyrus
[EMAIL PROTECTED]
http://norlonto.net/gyrus/dev/
PGP key available

[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to