Hello,
I am pretty new to RegEx so bear with me...
for the URL string below, I am trying to get the
"TEXT2" out of it
using JavaScript:
/BLAH/c/TEXT1.TEXT2.TEXT3?VARIABLE=&DESCRIPTION
I know that it will always be after the "/c/" and
after the "."
following that. I have tried using this:
w = window;
var comp = w.strvalue.search(//c/([A-Z0-9_.]+)/);
alert(RegExp.$1);
This returns "TEXT1.TEXT2.TEXT3"
Any thoughts or do I have to take the value my regular
expression gives
me, and then parse that again by "." to get the
second one?
Thanks!
Derek
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Regex" group.
To post to this group, send email to regex googlegroups.com
To unsubscribe from this group, send email to
regex-unsubscribe googlegroups.com
For more options, visit this group at http://grou
ps-beta.google.com/group/regex
-~----------~----~----~----~------~----~------~--~---
|