Regular Expressions 101

Sponsors

Library entries

1
pcre

include case

How to include the matched cases in the result?
Submitted by anonymous - 9 years ago
1
pcre

HTML color search

Searches for hex colors in HTML code.
Submitted by Barlean - 9 years ago
1
pcre

tesdsa

dsadsadsadsa
Submitted by dasdasdsa - 9 years ago
1
pcre

Match a date in SQL Server format

no description available
Submitted by anonymous - 9 years ago
1
pcre

1

23123
Submitted by anonymous - 9 years ago
1
pcre

test url

no description available
Submitted by anonymous - 9 years ago
1
pcre

regular expression - with space

no description available
Submitted by anonymous - 9 years ago
1
pcre

quotes and escapes

no description available
Submitted by zgorawski - 9 years ago
1
pcre

asd

asd
Submitted by anonymous - 9 years ago
1
pcre

YOLO

Substitutes "you only live once" with "YOLO".
Submitted by anonymous - 9 years ago
1
pcre

Number invalidator

Including +/-12.3. etc. Excluding MH12, etc.
Submitted by HMK - 9 years ago
1
pcre

number validator

exclude data with space and "-"
Submitted by HMK - 9 years ago
1
pcre

Match Markup

no description available
Submitted by A - 9 years ago

Textmate Snippet Variable Capture

Vote

1

Regular Expression
pcre

/
(\$) # Regexp for textmate dynamic variables #TM_( # BUNDLE_SUPPORT|COMMENT_(?:END|MODE|START)|CURRENT_(?:LINE|WORD)|DIRECTORY|FILE(?:NAME|PATH)| # LINE_(?:INDEX|NUMBER)|PROJECT_DIRECTORY|SCOPE|SELECTED_(?:FILE[S]?|TEXT)|SOFT_TABS|SUPPORT_PATH|TAB_SIZE #) (?: # BASIC # BASIC: Variable name, no brackets (?:(TM_[A-Z]+(?:_[A-Z]+)*)|([\d]))(?!\{) | # BRACKETED ([\{]) # BRACKETED: Variable name (?:(TM_[A-Z]+(?:_[A-Z]+)*)|([\d])) # BRACKETED: Post variable name expression (?: # Default keyword, single ([:].+?(?=[\}])) | # Default keyword, options ([\|].+?[\|](?=[\}])) | # Regular expression (?: ([\/]) (.+?(?=\/)) ([\/]) (.+?(?=\/)) ([\/]) # Flags # Not sure how to validate fully without back references? ([imx]{3}) (?=\}) ) | (?: ([\/]) ([^\/\}]+?) ( (?<![\\]{2}) [\/] ) ([^\/\}]+?) ( (?<![\\]{2}) [\/] ) # Flags # Not sure how to validate fully without back references? ([imx]{3}) ) | # Match to bracket (.+?(?=[\}]))? )? ([\}]) )
/
gmxX

Description

Loading markdown...
Submitted by disk0 <www.github.com/disco0> - 3 years ago