
7jv04 (7jv04) asked a question.
Early Merry Christmas to all! (Merry Festivus for the rest of us)
The answer to this should be helpful to many: How do you create the right expression syntax to remove any/all leading zeros in a string?
Context: HR system injects leading zeros on employee number. Depending on how long the employee has existed the employee number will have more or less leading zeros. I need the expression to look for and remove any leading zeros. I've seen this in other languages including Spring/SpEL expressions, but Okta doesn't like the syntax examples I've found thus far. For example: user.MangerId("^0+", "") looks close, but no cigar.

Hi, @7jv04 (7jv04)
Thank you for posting on our Community page!
We tested it and found out you can use this expression:
Community members help others by clicking Like or Select as Best on responses. Try it today.
_____________________________________________________________________________