JuliaText / TextAnalysis.jl

Julia package for text analysis
Other
374 stars 96 forks source link

changed remove_patterns #121

Closed aquatiko closed 5 years ago

aquatiko commented 5 years ago

In issue #100 it was asked to strip whitespaces and the result should not contain whitespaces at beginning or end of string. In the already laid out method, every regex match was replaced with a ' ' except at the matches occurring at the beginning of the string. Following the used methodology, this patch does the same for matches at the end i.e does not replaces the last match with ' '

Closes: https://github.com/JuliaText/TextAnalysis.jl/issues/100