hi!
in:
pattern = "(\[ch\])([A-G]+)(\/[A-G]*[b#])*([(?m)|(?m\d)|(?b\d)|(?#\d)|(?maj\d)|(?add\d)|(?sus\d)|(?aug)|(?aug\d)|(?dim)|(?dim\d)]*)(\/[A-G]*[b#])*(\[\/ch\])"
i think the chord type part of the regex is wrong for several reasons:
- everything is in a charset [] so it is taken by the character treating the (, ), ?, |, etc as characters
- the (?...) syntax is wrong
it would still mostly work but can get in some noise
thanks for your awesome project. i am using your scraper here: https://github.com/eyaler/uku3le (now being reworked)
hi!
in:
pattern = "(\[ch\])([A-G]+)(\/[A-G]*[b#])*([(?m)|(?m\d)|(?b\d)|(?#\d)|(?maj\d)|(?add\d)|(?sus\d)|(?aug)|(?aug\d)|(?dim)|(?dim\d)]*)(\/[A-G]*[b#])*(\[\/ch\])"i think the chord type part of the regex is wrong for several reasons:
it would still mostly work but can get in some noise
thanks for your awesome project. i am using your scraper here: https://github.com/eyaler/uku3le (now being reworked)