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. Except explicit open source licence (indicated Creative Commons / free), the "Regular Expression Search" algorithm, the applet or snippet (converter, solver, encryption / decryption, encoding / decoding, ciphering / deciphering, breaker, translator), or the "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.) and all data download, script, or API access for "Regular Expression Search" are not public, same for offline use on PC, mobile, tablet, iPhone or Android app!
Reminder : dCode is free to use.

Cite dCode

The copy-paste of the page "Regular Expression Search" or any of its results, is allowed (even for commercial purposes) as long as you credit dCode!
Exporting results as a .csv or .txt file is free by clicking on the export icon
Cite as source (bibliography):
Regular Expression Search on dCode.fr [online website], retrieved on 2024-12-21, 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
© 2024 dCode — The ultimate 'toolkit' to solve every games / riddles / geocaching / CTF.
 
Feedback