regexmatch.dev
Explore
Open main menu
Save & Share
Facebook
Twitter
Tumblr
E-Mail
Pinterest
LinkedIn
Reddit
IPv4 + TCP-Port
Published on Tue Mar 01 2022
This regex matches a IPv4 with a TCP Port (1-65535) Example: `192.168.0.69:1337` will match and have the groups: - Group 1: `192.168.0.69` - Group 2: `1337`
Regex
Test String
192.168.0.5:6
Additional matching regexes for
IPv4 + TCP-Port
IPv4 + TCP-Port
This regex matches a IPv4 with a TCP Port (1-65535) Example: `192.168.0.69:1337` will match and have the groups: - Group 1: `192.168.0.69` - Group 2: `1337`
Replace second grouping with first
Identifies two groups, each group using a regex, then replaces group 2 with group 1.
Discord ID:NAME#DISCRIM match
For example, using ``Carl-bot`` to dump members of the ``@everyone`` role ordering highest of ``id``: ``!dump @everyone %i:%u -o id`` Example of return: ``` 498984530968051713:lanjt#2129 ... ``` Matches with group ID, group NAME and group DISCRIMINATOR.
Timecode
Regex to match standard timecode format. (Updated with fewer groups).
match arguments similar to shell, supports quoted string
first group matches quoted strings second group plain text, arguments are separated with a space. example: "this is a \"string\"" thisisnot "another \"string\" with a backslash \"\\"" just replace \" with " after matching.
Simple first exercise of a newbie
Find a group of 9 letters subdivided in groups of three by a dash.
Mail With Groups
Matches email with groups for username and domain.
Youtube ID match
This regex will match any Youtube video ID thrown at it and return one capturing group containing the ID.
Match Literal Text Example
Regular Expressions Cookbook 2.1 Match Literal Text Example
URL parser also with shorthand syntax
mail.google.com google.it www.mega.co/ http://www.google.it mail.google.uk/login/auth.html ftp://docs.python.org:54/login/ google.com:65535