dimanche 5 novembre 2017

Regex Invalid range in bracket expression [duplicate]

This question already has an answer here:

I want a regex that match all four operator + - * /.

When using this one with regex_match: [+-*/] I get an error:

Invalid range in bracket expression

I tried escaping all the characters like that: [\\+\\-\\*\\/] but it's the same.

What am I doing wrong?

Aucun commentaire:

Enregistrer un commentaire