Regex
4 min
constructs a regular expression from text see https //developer mozilla org/en us/docs/web/javascript/guide/regular expressions https //developer mozilla org/en us/docs/web/javascript/guide/regular expressions and http //stackoverflow\ com/questions/46155/validate email address in javascript https //stackoverflow\ com/questions/46155/how can i validate an email address in javascript for information about regular expressions syntax regex(exp, flag) enabled for for a description of the business object categories, see notes on "enabled for" docid\ u26v9fecfs6ilwa0 pvjd business object category yes/no business rules before save rules yes1 business rules calculation rules (after save, with or without also recalculate on load) yes business rules calculation rules (before save or always, without also recalculate on load) yes1 business rules calculation rules (before save or always, with recalculate on load) yes business rules editing rules yes1 business rules initialization rules yes1 business rules read only rules yes1 business rules required rules yes1 business rules validation rules yes1 client expressions yes object permissions no services yes ldap yes mobile yes quick actions (except ui quick actions) yes1 ui quick actions yes reports yes1 search/dashboard without field references yes1 search/dashboard with field references no 1 except in services parameters parameter description exp the regular expression, without slashes flag (optional) the flags associated with the regular expression return value regular expression that is a text value example regex(“^\[a za z0 9 %+ ]{1,64}@(? \[a za z0 9 ]{1,63}\\ ){1,125}\[a za z]{2,63}$","i") this example returns a regular expression that matches a valid email address regardless of how capitalization is used in the address support\@ivanti com the expression above returns true support\@ivanti com the expression above returns true support ivanti com the expression returns false
