Hello!
I am trying to write an expression to limit the input of the city name (only Ukrainian letters, may contain a hyphen or apostrophe) according to the sample: “Name”, “Name Name” or “Name-Name”
But my version doesn’t work quite correctly even for a one-word city name :
^[\u0404\u0406\u0407\u0410-\u0429\u042E\u042F][\u0430-\u0449\u044E\u044F\u0491\u0454\u0456\u0457]+$
@al_gc, I have not tried this, but could you also share the small a
and capital A
in Ukrainain and a small z
and a capital Z
? Maybe the community could try it out if you provide these details.
Maybe the regex Help Center article can help to find a solution, e.g. with \w and \-, Restricting Text Responses With Regular Expressions — KoboToolbox documentation.