Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

28 lines
848 B
Plaintext
Raw Normal View History

{
"name": "~",
"type": "operator",
"groups": ["Operators"],
"description": "Performs a regular expression match on a string value. Backslash characters must be double escaped (e.g., \"\\\\\\\\s\" to match a white space character).",
2022-01-13 08:56:17 -05:00
"arguments": [{
"arg": "string",
"description": "A string value"
}, {
"arg": "regex",
"description": "A regular expression. Slashes must be escaped, eg \\\\\\\\d."
}],
"examples": [{
"expression": "'hello' ~ 'll'",
"returns": "TRUE"
2022-01-13 08:56:17 -05:00
}, {
"expression": "'hello' ~ '^ll'",
"returns": "FALSE"
2022-01-13 08:56:17 -05:00
}, {
"expression": "'hello' ~ 'llo$'",
"returns": "TRUE"
2022-01-13 08:56:17 -05:00
}, {
"expression": "'abc123' ~ '\\\\\\\\d+'",
"returns": "TRUE"
2022-01-13 08:56:17 -05:00
}],
"tags": ["white", "space", "regular", "performs", "backslash", "characters", "escaped", "character", "expression", "match"]
}