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!


Thanks to your feedback and relevant comments, dCode has developed the best 'Regular Expression Search' tool, so feel free to write! 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 (link) A fairly comprehensive library, full of examples.

Regex101 here (link) : Tester, Online Debugger.

Source code

dCode retains ownership of the online "Regular Expression Search" source code. Except explicit open source licence (indicated CC / Creative Commons / free), the "Regular Expression Search" algorithm, the applet or snippet (converter, solver, encryption / decryption, encoding / decoding, ciphering / deciphering, 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, copy-paste, or API access for "Regular Expression Search" are not public, same for offline use on PC, tablet, iPhone or Android ! Remainder : dCode is free to use.

Need Help ?

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

Questions / Comments

Thanks to your feedback and relevant comments, dCode has developed the best 'Regular Expression Search' tool, so feel free to write! Thank you!


Source : https://www.dcode.fr/regexp-search
© 2021 dCode — The ultimate 'toolkit' to solve every games / riddles / geocaching / CTF.
Feedback