i am using this Regex
private static final String HREF_PATTERN =
"\\s*(?i)href\\s*=\\s*(\"([^\"]*\")|'[^']*'|([^'\">\\s]+))";
to get the link from
<a href=www.example.com/1234 5678>
The URL is malformed. It contains a whitespace. The Problem is that i want to get the whole link including "5678", but i only get "www.example.com/1234".
I am not that good with regular Expressions. Can someone please provide a valid regex so that i can get the whole url "www.example.com/1234 5678".
Thanks