I’m a beginner with both Python and RegEx, and I would like to know how to make a string that takes symbols and replaces them with spaces. Any help is great.
For example:
how much for the maple syrup? $20.99? That's ricidulous!!!
into:
how much for the maple syrup 20 99 That s ridiculous
One way, using regular expressions:
\wwill match alphanumeric characters and underscores[^\w]will match anything that’s not alphanumeric or underscore