Creating a Regular Expression Using the SubString Parser
The SubString Parser provides the unique ability to build regular expressions based on selected text from the message response text shown above. Use the following steps to create a regular expression.
Note: In CloudTest, when you are entering a Regular Expression for a Session Template, to Include/Exclude resources in a page, or for a PropSet in the Message Editor portion of the Clip Editor, you are entering a Java regular expression. Whereas, when you use regular expressions within a script (via the RegExp object or the /pattern/ notation), you are using a JavaScript regular expression. The two are not interchangeable, so you can’t copy expressions from one to the other.
The Regular Expression section includes the following fields:
- Expression – This field displays the regular expression that is being built here.
- Insert Non-Fixed – Highlight and click Insert Non-Fixed for all non-fixed characters in both Leading Text and Trailing Text.
How to
What you should see
