regular expression

Working with EditPlus Text Editor-Regular Expression How To

Editplus is a lot better than the regular text editor, Notepad. From all it’s features I like RegExp Support the most, and than comes the block select feature. Here are the quick lines to carry out regular tasks using regular expression in Editplus. It’s kinda downloadable cheetsheet list. Remove all empty lines: Find: “^\n” (Ignore double-quotes in all find/replace) Replace: “” Where, ^ – Beginning of the line \n – New Line Remove Multiple Spaces convert into single space: Find: ” +” Replace: ” “ Where, + – find one or more occurance of space character. Comment multiple line of...

Regular Expression Basics – Quick Reference

Characters Character Description Example Any character except [\^$.|?*+() All characters except the listed special characters match a single instance of themselves. { and } are literal characters, unless they’re part of a valid regular expression token (e.g. the {n} quantifier). a matches a \ (backslash) followed by any of [\^$.|?*+(){} A backslash escapes special characters to suppress their special meaning. \+ matches + \Q…\E Matches the characters between \Q and \E literally, suppressing the meaning of special characters. \Q+-*/\E matches +-*/ \xFF where FF are 2 hexadecimal digits Matches the character with the specified ASCII/ANSI value, which depends on the...