Jump to content

Recommended Posts

Posted

Does anyone know what the string would be for a regex condition that would decide on MINOR or Moderate?

 

I've never worked with regex when it comes to the or statement.

 

Thanks

Posted

What are you trying to achieve? Also just want to be clear that Regex is, by default, case-sensitive though that can be changed.

 

At its simplest, MINOR|Moderate is sufficient - but actually using it depends on what you are trying to achieve, and in which language.

 

I recommend having a look at https://regexr.com/ - it's where I check all my Regex. It has decent documentation and helps explain what is going on as well as illustrating it clearly.

  • Thanks 1
Posted
What are you trying to achieve? Also just want to be clear that Regex is, by default, case-sensitive though that can be changed.

 

At its simplest, MINOR|Moderate is sufficient - but actually using it depends on what you are trying to achieve, and in which language.

 

I recommend having a look at https://regexr.com/ - it's where I check all my Regex. It has decent documentation and helps explain what is going on as well as illustrating it clearly.

 

Cheers, i thought as much but it's working for what i want it to do and thanks for posting a regex help site.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...