Hi, I have this bit of code that I found here: https://www.youtube.com/watch?v=v_8rdQjOuxw
and at first regex would work, but then when I hit "[]" it wouldn't. Here's the code:
Any input from the video. For example typing "ab" into the program should output "matched" but instead it gives me a regex_error statement and crashes the program.