-
-
Notifications
You must be signed in to change notification settings - Fork 35
Conditionregex
psiinon edited this page Apr 4, 2013
·
2 revisions
This conditional tests whether the specified regex is present.
| Name | Format | Description |
| regex | String | The regular expression to test for |
| location | String | The location to test, either HEAD or BODY |
| ifStatements | Array | The statements to run if the regex is found |
| elseStatements | Array | The statements to run if the regex is not found |
| index | Integer | The index of the statement in the script |
| elementType | String | Always ZestConditionRegex |
{
"regex": "alert\(1\);",
"location": "BODY",
"ifStatements": [],
"elseStatements": [],
"index": 2,
"elementType": "ZestConditionRegex"
}
- Zest Core for details about Zest