Skip to main content


 

Symptoms


SN Validation
 

Diagnoses


A service that we are writing takes in a SN and uses this to action a workflow. However we want to validate the SN.

Is there a regex that we can use for this?

i.e. 6 numbers followed by underscore followed by two numbers?
 

Resolution

This REGEX will validate the SN:
^/0-9]{6,}_,0-9]{2,}$
6digits_2digits at least.
 




 
Be the first to reply!

Reply