Plugin: Regex matcher

New plugin (version 0.0.1) to parse a regex (regular expression) and extract parts of it.

Example:

INPUT:
  Expression: "123456789/AB1234/expenseReport_1234.txt"

CONFIGURATION
  REGex Pattern : "([0-9]*)\/[A-Z]{2}([0-9]*)\/(.*)\..*"
  Additional outputs:
    Asset_ID : A\1-\3 ==>
    User_ID : \2

OUTPUTS:
  {"Match"=>"123456789/AB1234/expenseReport_1234.txt", "Asset_ID"=>"A123456789-expenseReport_1234", "User_ID"=>"1234"}

The input expression matched the configured pattern. Two outputs were built (Asset_ID and User_ID) out of this input expression.

Attachments

0 Comments

Please sign in to leave a comment.
Powered by Zendesk