I'm fairly new to coding, and I'm completely new to regex.
How do I use regex to read through a text file and set each unique word as a key and have the value be how many times that word (not case sensitive) shows up in the file? It also needs to be able to find words that are mixed in with characters, for example: "364Hey@ 8friend99%^" would output 'hey' and 'friend' as the keys.
For example, if my txt file is:
Hello, my name is 423Jeff. My 6name34 @@is 4 letters long.
My desired outcome would be something like:
{'hello': 1, 'my': 2, 'name': 2, 'is': 2, 'jeff': 1, 'letters': 1, 'long': 1}