I am trying to use regular expression which is tested and works fine in java but throws an error in using expression with matches function in expression editor. please let me know if there is an issue with syntax applied .
matches("/^[a-zA-Z ]+$/",city_name) … value pased : siva city ( returns false)
Java example :
If you’re trying to see if a string consists entirely of a-z, A-Z and spaces, then you can use this:
Demo and tester here: http://jsfiddle.net/jfriend00/mQhga/.
siva city - result is passed in this one
please let me know if you need more details .