Regex give super power to programmers. One tool that helped me a lot in learning RegEx is Regex 101 It is a userfriendly and expansive body of knowledge on the Regex, and it provide real time feedback when we experiment with the expressions. Here a very simpler version of the regex101 will be implemented using the P5js support.
In order to process the text provided by the user i.e YOU or take the text already on this page examples, some cleaning is required. The text that is shown Under Process: has markup surrounding it. If we need to do any text processing, then the html tags and unwanted spaces needs to be removed. To do that, replace() function is used. The tags are numerous types, hard coding them will be a challenge so the "
There are two fields below. One takes the text that you have and the other is the expression that you want to enter. There are multiple ways to execute the regex in JS. They are,
Check if a string contains the 2 letter word followed by 2 digit number and followed by letters, with spacing in between. All case insensitive emails are provided. Please make a note of them. contact@regex101.com, Camle@gmail.com,Local@linl.li.in,Hinoar@niha-oonai.com,Hinoar@niha-oonai.comehtah, Locvn.krai.com, Legal, localpartgoeshere@foo.exam..ple.com
There are multiple numbers below representing different information, quantities and distances .1.0e112, 1.7855, 74556, 25.7862, 1.5e "(Alice Wonderland)(?!')". In what ways the above text can be meaning fully cleaned and the information inside that can be extracted?
If you have another file that you want to extract information, use the below drop zone.
Drop your Text files(*.txt) here
RegEx Here: Replacing Words: HTML String:If you want to display html code on html page needs the < or > symbol to be converted to text with '&'lt and '&'gt. HTML string can be input in the "HTML String" text box and html replacer can be used.