janstarke / rexgen

API Documentation
https://github.com/janstarke/rexgen/blob/master/doc/api.md
GNU General Public License v2.0
52 stars 20 forks source link

Does '=' have a special meaning? #10

Closed magnumripper closed 9 years ago

magnumripper commented 9 years ago

See https://github.com/magnumripper/JohnTheRipper/issues/1064

$ rexgen/rexgen '(f|\|x|ph)'
f
|x   <-- expected
ph

$ rexgen/rexgen '(f|\|=|ph)'
f
|   <-- unexpected, missing =
ph

$ rexgen/rexgen '(f|\|\=|ph)'
f
|=
ph

Why do we have to escape the = to get it emitted?

janstarke commented 9 years ago

I already had a character class SPECIAL in my lexer, but I forgot to tell him what to do with special characters...

Regards, Jan