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 ' '
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