Documentation Index Fetch the complete documentation index at: https://docs.spojit.com/llms.txt
Use this file to discover all available pages before exploring further.
The Regex Tools connector provides regular expression operations for pattern matching, extraction, and text manipulation.
No connection required — this utility connector works out of the box.
Regular expression pattern.
Regex flags (e.g., g, i, m).
Example request: {
"text" : "Contact us at support@example.com or sales@example.com" ,
"pattern" : "[ \\ w.+-]+@[ \\ w-]+ \\ .[ \\ w.]+" ,
"flags" : "g"
}
Example response: {
"count" : 2 ,
"matches" : [
"support@example.com" ,
"sales@example.com"
]
}
extract — Extract capture groups
replace — Replace by regex
Replacement string. Use $1, $2 for capture groups, $& for full match.
Example request: {
"text" : "2026-04-02" ,
"pattern" : "( \\ d{4})-( \\ d{2})-( \\ d{2})" ,
"replacement" : "$2/$3/$1"
}
Example response: { "result" : "04/02/2026" , "replacements" : 1 }
Maximum number of splits.
Example request: {
"text" : "apple;; banana, cherry orange" ,
"pattern" : "[;, \\ s]+"
}
Example response: {
"parts" : [ "apple" , "banana" , "cherry" , "orange" ],
"count" : 4
}
test — Test if pattern matches
Returns true or false. Example request: {
"text" : "192.168.1.100" ,
"pattern" : "^ \\ d{1,3} \\ . \\ d{1,3} \\ . \\ d{1,3} \\ . \\ d{1,3}$"
}
Example response:
escape — Escape special characters
Escape regex special characters so a string can be used as a literal pattern. Example request: {
"text" : "price is $9.99 (USD)"
}
Example response: { "result" : "price is \\ $9 \\ .99 \\ (USD \\ )" }
validate — Check if regex is valid
Regex pattern to validate.
Example request: {
"pattern" : "[a-z" ,
"flags" : "g"
}
Example response: {
"valid" : false ,
"error" : "Invalid regular expression: /[a-z/: Unterminated character class"
}
Example request: {
"text" : "the cat sat on the mat" ,
"pattern" : " \\ b \\ w{3} \\ b" ,
"flags" : "g"
}
Example response:
positions — Find match positions
Returns start and end positions of each match. Example request: {
"text" : "Error on line 12, error on line 45" ,
"pattern" : " \\ d+" ,
"flags" : "g"
}
Example response: {
"positions" : [
{ "match" : "12" , "start" : 14 , "end" : 16 },
{ "match" : "45" , "start" : 32 , "end" : 34 }
],
"count" : 2
}