I'm pretty new to regex and am having some issues trying to remove 2 strings from a string of text.
I'm using python3 and have tried the following.
'\W*(Command|exited|with|status|0)\W*
To match the string: Command exited with status 0
I am also looking for the regex to match the following.
=== stdout ===
I have tried:
'\W*(===|stdout|===)\W*
Any help with this would be greatly appreciated. Thanks!