![]() The question mark ( ?) is a metacharacter indicating that the preceding pattern, in this case the s character, is optional. The parentheses are metacharacters that group a series of pattern elements to a single element the pipe symbol ( |) matches one of the alternatives in the group. For example, the following regular expression searches for the literals f or ht, the t literal, the p literal optionally followed by the s literal, and finally the colon ( :) literal: Literals, which are the characters for which you are searchingĪ regular expression can specify complex patterns of character sequences. Metacharacters, which are operators that specify search algorithms You specify a regular expression by means of the following types of characters: Regular expressions enable you to search for patterns in string data by using standardized syntax conventions.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |