Regex help needed

  • Thread starter Thread starter Boaz Ben-Porat
  • Start date Start date
B

Boaz Ben-Porat

I need help with a Regular expression to match the following strings:

/debug
/x
-debug
-x

The / or x are at the beginning of the string

TIA

Boaz Ben-Porat
Milestone Systems
 
Boaz said:
I need help with a Regular expression to match the following strings:

/debug
/x
-debug
-x
^[/\-](debug|x)$

The / or x are at the beginning of the string

I suppose that you mean "the / or -".
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top