Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created February 2, 2019 06:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Whateverable/342f7915c2c6f132d349763999b4066a to your computer and use it in GitHub Desktop.
Save Whateverable/342f7915c2c6f132d349763999b4066a to your computer and use it in GitHub Desktop.
evalable6
say 'http://example.com/path/to/some.html' ~~ /^ 'http' 's'? '://' .+? '/' ([ a..z A..Z ]+) '.html' /
Potential difficulties:
Space is not significant here; please use quotes or :s (:sigspace) modifier (or, to suppress this warning, omit the space, or otherwise change the spacing)
at /tmp/dqi2KxZ_6E:1
------> ~~ /^ 'http' 's'? '://' .+? '/' ([ a..z⏏ A..Z ]+) '.html' /
Nil
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment