I understand it matches a position but say I want to match
A# exactly
/\b/
cause I don't want a word to the left of it
/\bA#/
right this should match but some text has an \n right after the chords or even an \r(which I recently found out some copied text strings have and that was one of my problems)
now I found that \s will match any space character including space \n \r and tab
/\bA#\s/
but it's not working in my code....
my search looks kinda like this...(im at work right now)
/\bA-G(m|M|maj|7|maj7|sus|sus2|sus4|9|4|2)((\/)(A-G))*\s/
Now I was matching an empty space because sometimes it would pick up
And or God
and the \b won't work with # cause it's not a word character
but I have a string the has
A\r
and I can't find a way to match that.
I'm at work now but at lunch I'll post the exact regex search im doing...