J
Jakob Lithner
I would like to check that entered "words" are music chords.
I came up with this expression that I think will do for my purpose:
"^[A-H](#|b)?(m|sus)?[0-9]?$"
All chords are entered on a line.
Chords are separated by spaces or slash "/".
I am new to regex handling and have therefore this question:
Is it possible to check the complete line in one go and verify that every
entered word
matches the expression?
I came up with this expression that I think will do for my purpose:
"^[A-H](#|b)?(m|sus)?[0-9]?$"
All chords are entered on a line.
Chords are separated by spaces or slash "/".
I am new to regex handling and have therefore this question:
Is it possible to check the complete line in one go and verify that every
entered word
matches the expression?