currently working on a script to strip characters out of titles coming from live. using:
regexp [\W] @substitute _
works fine, EXCEPT when the title of the clip is one word with no spaces. then, nothing gets output at all.
is there a better way using regex to remove any non-alphanumeric characters coming down the pipe and replace them all with underscores? (and retain strings that have no spaces...) i can't figure out how to "escape" a space in the regexp without it throwing quotes in and making it not work.
any help is appreciated!