The "CKEditor pattern replace" module is designed to provide an option at "Text formats and editors" to filter the pattern using regular expression and replace it with the replacement text.https://www.drupal.org/project/ckeditor_pattern_replace