regexmatch.dev
Explore
Open main menu
Save & Share
Facebook
Twitter
Tumblr
E-Mail
Pinterest
LinkedIn
Reddit
Single lone digits
Published on Tue Mar 01 2022
Find single digits that are not part of an integer. For example, "27" should not match, but "27.1" will match the "1". "27.11" won't match.
Regex
Test String
128.32.1.1
Additional matching regexes for
Single lone digits
Single lone digits
Find single digits that are not part of an integer. For example, "27" should not match, but "27.1" will match the "1". "27.11" won't match.
Outside Quotes
match any string outside of single or double quotes
Match numbers with consecutive digits
Match numbers with consecutive digits and of length 3.
Node (common.js) require regex
Uses a single string to match any node require variables
Match Literal Text Example
Regular Expressions Cookbook 2.1 Match Literal Text Example
get number and unit in string
match int or float number, and following word (unit for example)
Match multiline comments /* ... */
It won't match single line comments like this one: //* This comment won't be match */ ^ see the double / Works in PHP without the g modifier.
SSN
allow nine digits only
Regex for chatbot to match & extract multiple command
Example: "/lowercase HELLO .:uppercase ::weather london" ===Match #1 prefix: / command: lowercase arguments: HELLO ===Match #2 prefix: .: command: uppercase arguments: - ===Match #3 prefix: :: command: weather arguments: london
Regex to match any JSON value with fewer steps possible
If you find... - any JSON value that should be matched but isn't, - any JSON value that should NOT be matched but is - or simply a way to match the values with fewer steps... please, let me know.