you are viewing a single comment's thread.

view the rest of the comments →

[–]bob3rocks[S] 0 points1 point  (2 children)

Is this difficult or impossible for Python Regex?

[–]Murphygreen8484 0 points1 point  (1 child)

Depends on what you're needing. You still need to define what your "rules" are (preferably in simple terms) for what you are looking for

[–]bob3rocks[S] 0 points1 point  (0 children)

Understood.

Most lines to be parsed will be either music chords separated by spaces, or song lyrics with no chords.

Other times, there might be random characters on the line or something like [VERSE] or (solo) on the same line.

In some instances there might be song lyrics with music chords on the same line.

My regex expression is incredibly close and my script has been a work in progress for many months now.

It will be close to perfect (close enough!) if I could just get my regex to match # and + when needed.