Module: PragmaticSegmenter::PunctuationReplacer::Rules::EscapeRegexReservedCharacters

Defined in:
lib/pragmatic_segmenter/punctuation_replacer.rb

Constant Summary collapse

LeftParen =
Rule.new('(', '\\(')
RightParen =
Rule.new(')', '\\)')
LeftBracket =
Rule.new('[', '\\[')
RightBracket =
Rule.new(']', '\\]')
Dash =
Rule.new('-', '\\-')
All =
[ LeftParen, RightParen,
LeftBracket, RightBracket, Dash ]