String helpers used by filters. Elixir is immutable so remove_and_count/2
returns {count, new_text} instead of mutating in place like Ruby's bang form.
Summary
Functions
Counts non-overlapping matches of pattern in text.
Removes every match of pattern and returns {count, new_text}.
Mirrors Ruby's remove_and_count! semantics but immutably.
Strips http/https/mailto/ftp URIs (Ruby without_uris).
Splits on \W+, dropping empty fragments.
Functions
Counts non-overlapping matches of pattern in text.
Removes every match of pattern and returns {count, new_text}.
Mirrors Ruby's remove_and_count! semantics but immutably.
Strips http/https/mailto/ftp URIs (Ruby without_uris).
Splits on \W+, dropping empty fragments.