You are viewing a single comment's thread. Return to all comments →
None of the regex patterns I see here will exclude #BED and #Cab. Am I missing something?
This is how I did it
pattern = r'(?<!^)#[0-9A-Fa-f]{3,6}'
Seems like cookies are disabled on this browser, please enable them to open this website
Hex Color Code
You are viewing a single comment's thread. Return to all comments →
None of the regex patterns I see here will exclude #BED and #Cab. Am I missing something?
This is how I did it
pattern = r'(?<!^)#[0-9A-Fa-f]{3,6}'