Hi,
I want to put a condition that text field only accept Hebrew charecter, I tried to find correct regex to validate hebrew text, but did not find.
Please suggest where can i find regex for hebrew text or is there any other way to do the same.
Thanks & Regards,
ShreeKrishna Tiwari
Discussion posts and replies are publicly visible
You could add a validation to check that all characters are Hebrew. I think there is no need for any regex.
https://unicode-table.com/en/blocks/hebrew/
This snippet checks whether a given string only consists of valid characters.
a!localVariables( local!string: "abcx", local!valid: "abc", len(cleanwith(local!string, local!valid)) = len(local!string) )
Thank you for quick response,
So The way You sugeested, do I need to put all 112 hebrew charecter in one string one by one?
If the characters are in a contiguous unicode range then you could write an expression to automate this.
char(1425 + enumerate(112))
Now you're just doing the work for @shreekrishnat0001 !!!
Note: it may not be that simple/may be more nuanced - there are some characters in that range that are not strictly Hebrew (Yiddish for example) and some of the cells in that range are currently empty. But, yes, the principle is you can generate a list of the valid characters using the char() function and any valid unicode ranges