![]() For example, the below regular expression matches col,cool,…,cooooooooooool,… + Plus, matches 1 or more characters in fron of the plus. For example, the below regular expression matches cl,col,cool,cool,…,coooooooooool,… * Asterisk, matches 0 or more characters in front of the asterisk. For example, the below regular expression matches apple and apples. ? Question mark, matches 1 or 0 character in front of the question mark. For example, the below regex matches, , and. ( ) Parentheses, groups one or more regular expressions. For example, the below regex matches kam, kbm, kcm, k2m, k3m, k4m and k5m. – Hyphen, used for representing a range of letters or numbers,often used inside a square bracket. ![]() For example, the below regex matches bad, bed, bcd, brd, and bod. Square brackets, matches any single character from within the bracketed list. For example, the below regex matches a paragraph or a line ends with bye. $ Dollar sign, matches a term if the term appears at the end of a paragraph or a line. ^ Carat inside a bracket, for example, the below regex matches any characters but a, b, c, d, e. For example, the below regex matches a paragraph or a line starts with Apple. ^ Carat, matches a term if the term appears at the beginning of a paragraph or a line. For example, the below regex matches shirt, short and any character between sh and rt. Period, matches a single character of any single character, except the end of a line.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |