Regex Examples and Tools

Learning regular expressions is tricky. 

Here are some links:

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:

\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".


tags: regex, editplus

Related Scribbles:
  • Grep examples and tricks
  • Programming
  • Regex Tutorial
  • Replace HTML tag contents PHP
  • ColdFusion MX Regex Syntax

  • ID: 209
    Date Updated:
    2016-12-12 13:50:56
    Date Created:
    2003-08-23 01:29:18


     >> Leonard Chan's Homepage  >> Scribble Web  >> Regex Examples and Tools is hosted by Perceptus Solutions Inc.