Quote:
Originally Posted by kovidgoyal
Given that you can chain regexes with | I don't really see the need for more.
|
You can chain the search regex but you can't chain the replacement text. Chaining would only be useful in a limited number of circumstances such as removing content entirely.
Quote:
Originally Posted by duepixel
|
^ and $ work fine for start and end of string. Remember that the start of the string is the first character in the regex preview. You probably want ^ and $ to work on lines. Look the (?iLmsux) flags section of the
Python Re Syntax to enable this behavior.