Skip to main content

Regex Pipe

Perform Regular Expression functions using the functions in the PHP PCRE (Perl Compatible Regular Expressions) Library.

Getting Started

Install the Regex Pipe

To use the Regex pipe, you must navigate to the pipes section of the Tadabase Builder and click "Install Pipe". Search for Regex in the list of pipes, and then click on the pipe to install. 

API Calls

  • Search and Replace - preg_replace
  • Search and Filter - preg_filter
  • Quote Regular Expression Characters - preg_quote
  • Search Array - preg_grep
  • Match All - preg_match
  • Split - preg_split

Search and Replace 

For more details and examples, see to the PHP documentation for preg_replace().

Parameters
  • Regex Pattern* - The regex pattern you would like to search for. For example: "/brown/"
  • Replacement Text* - The regex replacement for all text that matches the Pattern you are searching for. For example: "blue"
  • Search Text* - The text you would like to search. For example: "The quick brown fox jumps over the lazy dog."

*Required

Response
  • Status
  • Result 

Split

preg_split — Split string by a regular expression

More Details

To learn more about this Pipe and the additional API calls, please see this article: https://developers.taxjar.com/api/reference/#sales-tax-api.