Refinery Transformation Regex

Regex examples for the Chaos Refinery. As new examples are highlighted we will share them here, but please reach out with any cool transformation's you've done.

Refinery Regex Examples:

IP Address Breakdown

(\\d+)\\.(\\d+)\\.(\\d+)\\.(\\d+)

IP Address & Port separation

(^(?:[0-9]{1,3}\\.){3}[0-9]{1,3}):(\\d+)

Request Breakdown

(\\w+) (\\S+) (\\w+.\\d.\\d)

AWS ARN KMS Separation

(\\w+):(\\w+):(\\w+):(\\w+-\\w+-\\d+):(\\d{12}+):(\\S+)

URI Stem

(\\S+[ :])(\\d+)(\\S+)

or

https:\\/\\/(\\S+):(\\d+)(\\S+)

or

http:\\/\\/(\\S+):(\\d+)(\\S+)

Refinery Transformation Regex


Regex examples for the Chaos Refinery. As new examples are highlighted we will share them here, but please reach out with any cool transformation's you've done.

Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.