I am trying to split a string into an array by any character that is not alphanumeric. Can assign a regex pattern to the IFS variable to accomplish this?
I have tried it like so:
input="$1" IFS="[^a-zA-Z]" read -ra name_parts <<< "$input"
But this splits the string by any "a" or "A" - not even recognizing the "^". This question looks similar by title, but does not appear to be about the question I'm asking.