The application of regular expression in Rational Function Tester

Source: Internet
Author: User
Tags expression regular expression

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.