Search for a tool
Regular Expression Search

Tool to search (or test) in a text, a message, or a document by regular expression / rational expression and extract matching substrings.

Results

Regular Expression Search -

Tag(s) : Data Processing

Share
Share
dCode and more

dCode is free and its tools are a valuable help in games, maths, geocaching, puzzles and problems to solve every day!
A suggestion ? a feedback ? a bug ? an idea ? Write to dCode!


Please, check our dCode Discord community for help requests!
NB: for encrypted messages, test our automatic cipher identifier!


Feedback and suggestions are welcome so that dCode offers the best 'Regular Expression Search' tool for free! Thank you!

Regular Expression Search

Regexp Search in a Text

Answers to Questions (FAQ)

What is a regular expression?

A regular expression (or rational expression or regexp) is a string that describes a set of other possible strings in a precise syntax, and is used in computing for search, editing and text control.

Example: a(b|c)[a-z]{3}describes a set of 5 letters beginning with a, followed by b or c and 3 other letters between a and z, in small caps

Example: [0-9]{2}!? describes a set of 2-digit numbers from 00 to 99 followed or not by an exclamation mark

What are the most common regular expressions?

Regular expressions depend heavily on the type of text to be processed:

Lower case name: [a-z0-9_-]{3,16}

Date dd/mm/yyyy: \d{1,2}\/\d{1,2}\/\d{4}

Hexadecimal color: #?([A-Fa-f0-9]){3}(([A-Fa-f0-9]){3})?

E-mail address: [a-z0-9_\.-]+)@([\da-z\.-]+)\.([a-z\.]{2,6}

Internet address:https?:\/\/)?([\da-z\.-]+)\.([a-z\.]{2,6})([\/\w \.-]*)*\/?

IP address: (?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)

What are the best resources for regular expressions?

RegexLib here A fairly comprehensive library, full of examples.

Regex101 here : Tester, Online Debugger.

Source code

dCode retains ownership of the "Regular Expression Search" source code. Any algorithm for the "Regular Expression Search" algorithm, applet or snippet or script (converter, solver, encryption / decryption, encoding / decoding, ciphering / deciphering, breaker, translator), or any "Regular Expression Search" functions (calculate, convert, solve, decrypt / encrypt, decipher / cipher, decode / encode, translate) written in any informatic language (Python, Java, PHP, C#, Javascript, Matlab, etc.) or any database download or API access for "Regular Expression Search" or any other element are not public (except explicit open source licence like Creative Commons). Same with the download for offline use on PC, mobile, tablet, iPhone or Android app.
Reminder: dCode is an educational and teaching resource, accessible online for free and for everyone.

Cite dCode

The content of the page "Regular Expression Search" and its results may be freely copied and reused, including for commercial purposes, provided that dCode.fr is cited as the source. Exporting the results is free and can be done simply by clicking on the export icons ⤓ (.csv or .txt format) or ⧉ (copy and paste).
To cite dCode.fr on another website, use the link: https://www.dcode.fr/regexp-search
In a scientific article or book, the recommended bibliographic citation is: Regular Expression Search on dCode.fr [online website], retrieved on 2025-04-15, https://www.dcode.fr/regexp-search

Need Help ?

Please, check our dCode Discord community for help requests!
NB: for encrypted messages, test our automatic cipher identifier!

Questions / Comments

Feedback and suggestions are welcome so that dCode offers the best 'Regular Expression Search' tool for free! Thank you!


https://www.dcode.fr/regexp-search
© 2025 dCode — The ultimate collection of tools for games, math, and puzzles.
 
Feedback