Forum Discussion

FICO's avatar
FICO
Community Manager
9 years ago

Validate string value

I have a string of 6 character length which needs to be in a specific format - First 2 positions needs to be character and next 4 positions needs to be digits. Can this be done just in Blaze or should I create a method in java and call the method in blaze? Please advice. #StringValidation

1 Reply

  • FICO's avatar
    FICO
    Community Manager

    You can split the string into an array of characters using the Blaze SRL built-in method. Or use a Java helper class to do this. If the evaluation conditions need to be changed often then using SRL is probably better.