# RegEx API
# Test
Tests a string against a pattern.
Example
"08:15"
, "^(0?[1-9]|1[0-2]):[0-5][0-9]$"
➔ true
API Base URL
https://api.abracadalo.com/regex/test
Parameters
Name | Type | Description | Required |
---|---|---|---|
string | String | String to be tested | Yes |
pattern | String | Pattern to test for | Yes |
Outputs
Name | Type | Description |
---|---|---|
result | BoolString | Result of the test. |
# Replace
Replaces substrings that match with a pattern with another string.
Example
"What1a2sweet3feature!"
, "\d"
, " "
➔ What a sweet feature!
API Base URL
https://api.abracadalo.com/regex/replace
Parameters
Name | Type | Description | Required |
---|---|---|---|
string | String | String to be conversed | Yes |
pattern | String | Pattern to match | Yes |
replace | String | Replacement for matching substrings | Yes |
Outputs
Name | Type | Description |
---|---|---|
string | String | String after conversion |