I created a regex to highlight certain assembly-style hexadecimal numbers that look like this:
$00 $1400 $FFFFFF
Sometimes they also have #. So I created this regex as a start:
@"\b(\$)[A-Fa-f\d]+\b"
When I tried this, it didn't seem to match anything. However, if I replace \ $ with 0x, it works fine and returns matches for C # style hexadecimal numbers like 0x0F, 0xFF, etc.
Why is this? I spent several hours trying to get this regular expression to work, but I just can't and have no idea why. Any help would be appreciated.
source share