![]() ![]() ![]() ![]() ![]() Both ‘a’ and ‘z’ are regular characters, and ‘–‘ is a metacharacter representing ‘between.’ How Do We Use It? For example, the expression defines a pattern that matches only lowercase alpha characters from a-z. Using a syntax consisting of metacharacters (characters that have special meaning) and regular characters (literal values like ‘a,’ ‘b,’ etc.) regex can define a search pattern. This string of text, which looks like jibberish to the untrained eye, defines the pattern to compare against a target piece of text. Regex, or regular expression, is “a string of text that allows you to create patterns that help match, locate, and manage text” ( Originating as a mathematical concept, regular expression is now commonly used in search engines, text editors, and word processors. With regex, we can apply case sensitivity, ensure a set of valid characters, and more. Salesforce validation rules can use regex to enforce fine-grained text validation.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |