Roboteka
Roboteka · Catalog · Format string by regex

Format string by regex

Applies regex replace to the string (PHP preg_replace). Use $0, $1, $2… in replacement for match and groups.

Applies regex replace to the string (PHP preg_replace). Use $0, $1, $2… in replacement for match and groups.

What input parameters does the robot accept?

Parameter Type Required? Default
Source string string yes
Regular expression (pattern) string yes
Replacement string ($1, $2 for groups) string

What does the robot return?

Parameter Type
Result string
Success (false if regex error) bool

Related robots