Gregor Kofler wrote:
Dempsey.Jeff@gm ail.com meinte:
>
Untested:
/\/(.*?)\/tabid/
>Say I have a url that looks something like this.
>http://test.com/test/test2/tabid/656/Default.aspx. I need to be able
>to pull out only the word test2. I wont know that the word is going
>to be test2 when I use the regular expressions so I need to find
>everything between / and /tabid because that is the only thing that
>will be the same no matter what.
>http://test.com/test/test2/tabid/656/Default.aspx. I need to be able
>to pull out only the word test2. I wont know that the word is going
>to be test2 when I use the regular expressions so I need to find
>everything between / and /tabid because that is the only thing that
>will be the same no matter what.
Untested:
/\/(.*?)\/tabid/
allowing the empty string:
/\/[^\/]+\/tabid/
PointedEars
--
var bugRiddenCrashP ronePieceOfJunk = (
navigator.userA gent.indexOf('M SIE 5') != -1
&& navigator.userA gent.indexOf('M ac') != -1
) // Plone, register_functi on.js:16
Leave a comment: