I want to split a string based on a non-regular expression. My input is a plain string. So, for example, given the input "hello.*there"
and ".*"
, I want the result ("hello" "there").
Doing this obv doesn't work:
(regexp-split (regexp sep) str))
since it will try to match the regular expression .*
. How do I escape sep
to nullify any regexp-like patterns?