Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I use puttytray to access a shell account on which I have a tmux instance running. Inside tmux, I have irssi running in a window. When people post long URLs in IRC, however, it's annoying since these URLs are broken across lines. Therefore puttytray ends up highlighting something like:

http://blogs.forbes.com/matthewherper/2011/07/13/did-reddit-discover-silent-

as the URL instead of http://blogs.forbes.com/matthewherper/2011/07/13/did-reddit-discover-silent-censorship-on-google-plus/ .

PuttyTray's regex for URLs is configurable and is currently:

(((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]+)?((\/|\?)[^ "]*[^ ,;\.:">)])?

Would there be a way to change this in order to match up until the '│' (not pipe) character, ignore the rest of the line, and start matching on the new line?

share|improve this question

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.