If you enable BRIEF regular expressions, you can use the BRIEF regular expression symbols in your regular expressions, instead of the symbols in the table above. For example, \^ matches ^ and does not look for the start of a line. For example, given the text to find and replacement strings, Find: ), with the same behavior.Ī backslash before a wildcard character tells the Code Editor to treat that character literally, not as a wildcard. For the Replace operation, groups are referred to by a backslash and a number, according to the position in the "Text to find" expression, beginning with 0. ![]() Groups can be nested, with a maximum number of 10 groups in a single pattern. Hence, matches any characters except b, o, or t.Ī hyphen inside square brackets signifies a range of characters.įor example, matches any character from b through o.īraces group characters or expressions. For example, matches b, o, or t.Ī circumflex at the start of a string inside square brackets means NOT. For example, bar|car will match either bar or car.Ĭharacters inside square brackets match any character that appears in the brackets, but no others. For example, bo t matches bot and boot, but not bt.Ī vertical bar matches each expression on each side of the vertical bar. For example, bo*t matches bt, bot, and boot.Ī plus sign after a character or a character group matches any number of occurrences of that character or a character group, with at least one occurrence. ![]() For example, bo?t matches both bt and bot.Īn asterisk after a character or a character group matches any number of occurrences of that character or group, including zero occurrences. For example, b.t matches bot, and bat, but not boat.Ī question mark after a character or a character group matches zero or one occurrences of that character or group. RAD Studio recognizes the following symbols in regular expressions:Ī circumflex at the start of the string matches the start of a line.Ī dollar sign at the end of the expression matches the end of a line.Ī period matches a single instance of any character. Regular expressions are search strings where certain characters (symbols) have a special meaning.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |