• + 1 comment

    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}'