Regex Examples and Tools
Learning regular expressions is tricky.
Here are some links:
-
https://regex101.com/ - live test regex - just use this - I can't figure out regex...
-
http://laurent.riesterer.free.fr/regexp/. Versions for windows and probably other stuff.
-
http://www.regexlib.com/ - some good samples.
-
they have a good looking cheatsheet here: http://regexlib.com/CheatSheet.aspx
-
http://www.phpbuilder.com/columns/dario19990616.php3 - another article on learning regex
-
http://www.regular-expressions.info/examples.html - good selection of samples.
Removing strings like "[1]", "[8]" from multiple rows of text in EditPlus. I couldn't figure out how to escape square brackets, so I broke it down this way:
-
replace all "[" with @
-
replace all "]" with @
-
replace "@[0-9]@" with blank with regex option enabled.
-
editplus: [\.][0-4] -- find period + digit from 0-4.
\b - word boundary:
Since digits are considered to be word characters, \b4\b can be used to match a 4 that is not part of a larger number. This regex does not match 44 sheets of a4. So saying "\b matches before and after an alphanumeric sequence" is more exact than saying "before and after a word".
from: http://www.regular-expressions.info/wordboundaries.html
tags: regex, editplus
>>
Leonard Chan's Homepage
>>
Scribble Web
>> Regex Examples and Tools