I have to math an URL in an href link that can have single or double quote or not.
With this example
/href=(\"|\')(http:\/\/www\.my\.url|)/
the only match i have are:
href="http://www.my.url
and
href='http://www.my.url
but not
href=http://www.my.url
how i can make a regexp that match this type of code?
Thank you all...
RegExp trouble
Moderator: General Moderators
Re: RegExp trouble
Code: Select all
/href=("|')?(http:\/\/www\.my\.url|)/There are 10 types of people in this world, those who understand binary and those who don't
-
fabio.casolari
- Forum Newbie
- Posts: 2
- Joined: Wed Nov 12, 2008 3:59 am
Re: RegExp trouble
It works! Thank you very much!