I'm trying to match any of the following lines with a regex in python:
RAA RAA
RAA RAA / OOO OOO
RAA RAA / OOO OOO / ROCKY
These strings should always be on their own line so RAA RAA moves over there. wouldn't match.
I came up with this regex using RegExr:
^([A-Z]*([ ]?)*([A-Z]?)*([ \/]?)*)*$
This works fine to match all the different lines however it causes python to hang if it tries to match RAA RAA moves over there.
I've no idea why. Are there any regex experts that might have some insight?
*implies?(for instance,([ ]?)*is\ *sans the backslash, which I was forced to include because markdown sometimes tries too hard not to obscure non-mark'd-up text).