-
Notifications
You must be signed in to change notification settings - Fork 2
Store RegEx
Gavin Bunney edited this page Mar 3, 2011
·
1 revision
This operation stores the result of a regular expression into a property.
By specifying a particular group of the regular expression it is easily to extract only a subset of a given regular expression.
storeRegEx = [property : 'name of property to receive the extracted value', text : 'the regular expression that shall be evaluated' ]
storeRegEx = [property : 'storedRegexValue', text : "/^([MADCOW:a-z0-9_\.{}-]-{}{}{-}+)@([MADCOW:\da-z\.+{-}])\.([MADCOW:a-z\.]\{2,6\})$/", description : "store the email matching the regular expression on the page"]
- Home
- Setting Up
- Configuration
- Writing Madcow Tests
- Running Madcow Tests
- Data Parameters
- Templates
- Macros
- Disabling A Test
- Spreadsheet Scenario Testing
Madcow Operations
- Madcow Operations
- Madcow Operations - Table
- Madcow Operations - XPath Extras
- List of Madcow Operations
Extending and Customising Madcow
Reference
For Developers