Skip to content

Instantly share code, notes, and snippets.

Shmuel Zeigerman shmuz

Block or report user

Report or block shmuz

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@shmuz
shmuz / OpenURL.lua
Last active Aug 29, 2015
A Far Manager Editor macro for opening URL under cursor
View OpenURL.lua
-- shmuel 20.06.2014 00:22:00 +0200
-- http://forum.ru-board.com/topic.cgi?forum=5&topic=31718&start=5180#15
local patt = regex.new( [=[
\b http s? :\/\/ [^\s`'"[\](){}<>]+ |
\b ftp :\/\/ [^\s`'"[\](){}<>]+ |
\b www \d* \. [^\s`'"[\](){}<>]+ |
\b mailto: [^\s`'"[\](){}<>]+ |
(?: \b [a-z]:)? (?: [\\\/]? [\w.\-]+ )+ [\\\/]?
]=], "ix")
You can’t perform that action at this time.