The URL regex.
- From: Pawel Salek <pawsa TheoChem kth se>
- To: Carlos Morgado <chbm chbm nu>
- Cc: balsa-list gnome org, albrecht dress arcormail de
- Subject: The URL regex.
- Date: Mon, 21 May 2001 10:44:49 +0200
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]