-
Notifications
You must be signed in to change notification settings - Fork 3
json exchange format
georf edited this page Feb 10, 2012
·
3 revisions
"json" = {
"parser": "php",
"regularExpression": "a(b*)",
"flags": ["i","o","g"],
"matchText": "bluab"
}
- parser: Parser to use (String)
- regularExpression: Regular expression without flags or delimiters (String)
- flags: Selected flags (Array of String)
- matchText: Text to search for matches (String)
{
"parser": "php",
"regularExpression": "a(b*)",
"flags": ["i","o","g"],
"matchText": "bluab",
"error": false,
"matchings": [
{
"text":"ab",
"index":3,
"subexpressions":["ab", "b"]
}
],
"programming": "preg_match('/a(b*)/iog', $matchtext);"
}
-
error: Error message or
false
(String or boolean) - matchings: Array of all matchings (Array)
- text: Text of the match (String)
- index: Index of the match (Int)
- subexpressions: Array of subexpressions. First element is the most extensive match. (Array of String)
- programming: Example for programming (String)