Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

Ticket #1075 (closed defect: fixed)

Opened 5 months ago

Last modified 3 months ago

Regexp character classes don't allow dashes

Reported by: JarrettBillingsley Assigned to: jascha
Priority: major Milestone: 0.99.7
Component: Tango Version: 0.99.5 Jascha
Keywords: triage Cc:

Description

Something like r"[-+]" doesn't work because the parser thinks it's missing the first part of the range. This should be interpreted as a character class of '-' and '+'. Escaping it doesn't work, since the parser just skips over (!!) any unknown escaped characters. Scary.

Change History

04/27/08 17:51:05 changed by JarrettBillingsley

Urf, I take back the part about it skipping escaped chars. It just looks that way in the source. It does work when escaped, but the part about it giving an error on a dash at the beginning of a pattern is still true.

05/24/08 06:06:13 changed by larsivi

  • keywords set to triage.
  • owner changed from kris to jascha.

07/02/08 17:12:12 changed by jascha

  • status changed from new to closed.
  • resolution set to fixed.