     // MARK: Private Methods
     
     private func patterns(for mode: RegularExpressionParseMode) -> [String] {
+
+        // regex pattern to avoid matching escaped character
+        let escapeIgnorer = "(?<!\\\\)(?:\\\\\\\\)*"
         
         switch mode {
         case .search:

//
//  ---------------------------------------------------------------------------
//
//  © 2018 1024jp
//
//  Licensed under the Apache License, Version 2.0 (the "License");
//  you may not use this file except in compliance with the License.

//  limitations under the License.
//

import Foundation.NSRegularExpression

enum RegularExpressionParseMode {
    
