Saturday, 15 June 2013

html - Regex to find a string within two strings but excluding anything that starts with http? -


I am currently using (? Lt; = href = ") (. *?) What is basically what I am doing? # Piece - [0- 9] "& gt;) which gives something between the href =" and # section - [any number between 0 and 9] " I want to exclude things like href = "http: //blahblah.com#fragment-1" or href = "https: blahblah.com # fragment-1", then I (. * ?) How can I change

thanks

  (? & Lt; = href = ") (?? https? :) (. *?) (? = # Piece- [0-9]" & gt;)   

Besides,.

No comments:

Post a Comment