Skip to content

Latest commit

 

History

History
22 lines (21 loc) · 695 Bytes

iterm2-smart-selection.md

File metadata and controls

22 lines (21 loc) · 695 Bytes

Word bounded by whitespace

\S+

C++ namespace::identifier

([a-zA-Z0-9_]+::)+[a-zA-Z0-9_]+

Paths

~?/?([[:letter:][:number:].-]+/+)+[[:letter:][:number:].-]+/?

Quoted string

@?"(?:[^"\\]|\.)*"

Java/Python include paths

([[:letter:][:number:].]+.)+[[:letter:][:number:].]+

mailto URL

\bmailto:([a-z0-9A-Z_]+@)?([a-zA-Z0-9-]+.)*[a-zA-Z0-9-]+\b

Obj-C selector

@selector([^)]+)

email address

\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+.[A-Za-z]{2,4}\b

HTTP URL

https?://([a-z0-9A-Z]+(:[a-zA-Z0-9]+)?@)?([a-z0-9A-Z][-a-z0-9A-Z].)+[A-Za-z][-A-Za-z]((:[0-9]+)?)(/[a-zA-Z0-9;/.-_+%?&@=#()~]*)?

SSH URL

\bssh:([a-z0-9A-Z_]+@)?([a-zA-Z0-9-]+.)*[a-zA-Z0-9-]+\b

Telnet URL