The URL regex.



Hi,

I have noticed  the url regex expression 
const char *url_str = "((ht|f)tps?://[^[:blank:]\r\n]+)";
has been replaced by
const char *url_str = "\\<((ht|f)tp[s]?://[^[:blank:]]+)\\>";     

IMO, the <>-brackets around the URL are rare and I think including them
in the regex is not needed. Most often, the URLs are just quoted in the
text and it is better to be able to click on them. (BTW, \r\n characters
are included in [:blank:] and can be removed). What do you think?

/Pawel




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]