[wx-dev] wxRegEx url matching

Vadim Zeitlin vadim at wxwidgets.org
Sun Feb 3 06:48:44 PST 2008


On Fri, 01 Feb 2008 11:45:55 -0800 Robin Dunn <robin at alldunn.com> wrote:

RD> Does anybody have a wxRegEx expression handy that can be used for 
RD> matching URLs?

 This all depends on how accurate you can be but my copy of "Mastering
Regular Expressions" (wholeheartedly recommended) gives this simple
example (in egrep syntax) for an URI to an HTML file:

	\<http://[-a-z0-9_.:]+/[-a-z0-9_:@&?=+,.!/~*%$]*\.html?\>

 Regards,
VZ





More information about the wx-dev mailing list