![]() Preserved Topic: Simple RegExp (Page 1 of 1) |
|
---|---|
Bipolar (III) Inmate From: Stockholm, Sweden |
![]() This question goes to anyone on the Asulym, but i KNOW the guru mr.MaX will solve it for me :-] |
Maniac (V) Mad Scientist From: Belgrade, Serbia |
![]() <SCRIPT TYPE="text/javascript" LANGUAGE="JavaScript"> |
Maniac (V) Inmate From: Brisbane, Australia |
![]() Dammit MAX! I could have actualy answered that one! heh |
Paranoid (IV) Inmate From: Lebanon |
![]() My turn now code: url = "http://www.someserver.com/somefolder/file.html".match(/(.+?)[^/]+$/i);
|
Paranoid (IV) Inmate From: Lebanon |
![]() Now mr.Max your turn again! |
Maniac (V) Mad Scientist From: Belgrade, Serbia |
![]() Lallous, actually your code isn't simpler than mine. Only thing that you did is condense functions, but your RegEx is still more complex than mine. Anyway, I won't go into cross browser issues since I don't have time. |
Paranoid (IV) Inmate From: Lebanon |
![]() I now beleive that NetScape doesnt fully support PCRE (Perl Compatible Regular Expression) as opposite to JavaScript, PHP, Delphi's TRegExpr unit, and many other RegExps librarys that i'm testing on! code: str = "http://www.someserver.com/somefolder/file.html";
|
Maniac (V) Mad Scientist From: Belgrade, Serbia |
![]() |
Paranoid (IV) Inmate From: Lebanon |
![]() of course mr.Max |
Maniac (V) Mad Scientist From: Belgrade, Serbia |
![]() |