Sed/Regex





Reply to a message with s/<text1>/<text2>(/<flag>) to perform a sed operation on that message, replacing all occurrences of 'text1' with 'text2'. Flags are optional, and currently include 'i' for ignore case, 'g' for global, or nothing. Delimiters include /, _, |, and :. Text grouping is supported. The resulting message cannot be larger than 4096.

If you don't know how sed works, refer to its documentation.

Reminder: Sed uses some special characters to make matching easier, such as these: +*.?\ If you want to use these characters, make sure you escape them! eg: \?.