Overview
A regular expression is a literal pattern consisting of ordinary characters and special characters that describe one or more strings to be matched when looking for a text body. While regular expressions are a very complex system, in an automated script you can use a few simple syntax to make the control more effective when it is recognized. Using regular expressions during automated testing can reduce the cost of development and help maintain automation scripts. This article first summarizes the regular expressions commonly used rules and examples; then it analyzes the difference between two regular expression classes Regularrexpression and Regex in RFT, and finally lists the common application examples of regular expressions in RFT. To help beginners of Rational Function test better understand regular expressions so that they can be used quickly in their own test projects, making automated scripts more flexible and maintainable, and saving development costs.
Overview of regular Expressions common rules
The rules for mastering and understanding regular expressions are the basis and prerequisite for using regular expressions, and the following summarizes the rules and simple examples of common regular expressions.
Some characters that are inconvenient to write and some characters that have special meaning need to precede them with the "\"
The abstract meaning of the symbol itself does not match any characters, it requires a matching location.