%
curl -X POST -H "Expect:" -H "Content-Type: application/json" -d ' {
"regex":"\\w+",
"testString":"bird is the word",
"flags":"g",
"delimiter":"@",
"flavor":"pcre",
"unitTests":[
{ "description":"testing ok festering not ok",
"criteria":"DOES_NOT_MATCH",
"target":"REGEX",
"testString":"festering" },
{ "description":"word should match",
"criteria":"DOES_MATCH",
"testString":"awesomelicious",
"target":"REGEX" },
{ "description":"match starts with",
"criteria":"STARTS_WITH",
"testString":"bird",
"target":"0",
"compareString":"bird" },
{ "description":"match ends with",
"criteria":"ENDS_WITH",
"testString":"poop",
"target":"0",
"compareString":"poop" },
{ "description":"there should be a word in here somewhere",
"criteria":"CONTAINS",
"testString":"word",
"target":"0",
"compareString":"word" },
{ "description":"bird is the word, for real",
"criteria":"EQUALS",
"testString":"bird is the word",
"target":"0",
"compareString":"bird is the word" },
{ "description":"no result",
"criteria":"IS_NULL",
"testString":"fishing",
"target":"0",
"compareString":null }
]
}' "https://regex101.com/api/regex"
%
gm