RegExp in JavaScript
Moderator: General Moderators
RegExp in JavaScript
Hi all
right, I really hate regular expressions, so I need help constructing the following
I need to extract my url from a string, which could either be 'http://alljammin.com/' or 'http://www.alljammin.com/' or just 'www.alljammin.com/'
leaving me with the reamainder of the string
so for instance
'http://www.alljammin.com/shizzle'
should leave me with 'shizzle'
Thanks for all ya help!
http://www.alljammin.com !
right, I really hate regular expressions, so I need help constructing the following
I need to extract my url from a string, which could either be 'http://alljammin.com/' or 'http://www.alljammin.com/' or just 'www.alljammin.com/'
leaving me with the reamainder of the string
so for instance
'http://www.alljammin.com/shizzle'
should leave me with 'shizzle'
Thanks for all ya help!
http://www.alljammin.com !
-
malcolmboston
- DevNet Resident
- Posts: 1826
- Joined: Tue Nov 18, 2003 1:09 pm
- Location: Middlesbrough, UK
without meaning too sound nasty
you have been asking pretty much the same question to do the same thing for ages now
go here for your answer
hope that helps
you have been asking pretty much the same question to do the same thing for ages now
go here for your answer
hope that helps
-
malcolmboston
- DevNet Resident
- Posts: 1826
- Joined: Tue Nov 18, 2003 1:09 pm
- Location: Middlesbrough, UK
-
malcolmboston
- DevNet Resident
- Posts: 1826
- Joined: Tue Nov 18, 2003 1:09 pm
- Location: Middlesbrough, UK
-
malcolmboston
- DevNet Resident
- Posts: 1826
- Joined: Tue Nov 18, 2003 1:09 pm
- Location: Middlesbrough, UK
ah, im sorry for the confusion i searched arund and found some things that may be of use to you
here
here
very helpful
here
hope these help
here
here
very helpful
here
hope these help
-
malcolmboston
- DevNet Resident
- Posts: 1826
- Joined: Tue Nov 18, 2003 1:09 pm
- Location: Middlesbrough, UK