ExtractRegularExpression Class

Extracts text from the response that matches the regular expression pattern.

Namespace:  Microsoft.VisualStudio.TestTools.WebTesting.Rules
Assembly:  Microsoft.VisualStudio.QualityTools.WebTestFramework (in Microsoft.VisualStudio.QualityTools.WebTestFramework.dll)

Syntax

'Declaration
Public Class ExtractRegularExpression _
    Inherits ExtractionRule
'Usage
Dim instance As ExtractRegularExpression
public class ExtractRegularExpression : ExtractionRule
public ref class ExtractRegularExpression : public ExtractionRule
public class ExtractRegularExpression extends ExtractionRule

Remarks

This extraction rule provides great flexibility for searching text responses for an occurrence of a string.

For more information about regular expression characters, see Character Classes.

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.TestTools.WebTesting.ExtractionRule
    Microsoft.VisualStudio.TestTools.WebTesting.Rules.ExtractRegularExpression

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

ExtractRegularExpression Members

Microsoft.VisualStudio.TestTools.WebTesting.Rules Namespace

Other Resources

Working with Web Tests

How to: Create a Custom Extraction Rule

How to: Add an Extraction Rule to a Web Test

Regular Expressions as a Language

Character Classes