To give you the best experience, this site uses cookies. Continuing to use 9bis.net means you agree to our use of cookies.
 

English version Russian version Version française Nederlandse versie Versión española Version portuguese Version polonaise Italian version Versiunea româna   KiTTY News

KiTTY : Forum

Last modification : -

KiTTY web site




Forum Home
 

Small fix for hyperlink regex

joe_v - Fri 06/04/2012 09:05:06 CEST +0200

If you wrap a url link in '' (strong quoting)

eg 'http://google.com'

the second ' will get included as part of the link when you click on it or hover your mouse on it

http://google.com'

The fix is simple, in the Hyperlink option in Pref, untick "Use the default reg ex" and add a ' after each " in the "Specify your own" field so it becomes:

(((https?|ftp):\/\/)|www\.)(([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+)|localhost|([a-zA-Z0-9\-]+\.)*[a-zA-Z0-9\-]+\.(com|net|org|info|biz|gov|name|edu|[a-zA-Z][a-zA-Z]))(:[0-9]+)?((\/|\?)[ "']*[ ,;\.:"'>)])?


Hope the dev can add the fix in internal hyperlink's regex as well








Answer


The forum is actually closed