Skip to main content


Laurence MorganAbout 1 min


Match an exact value in an array


match takes input from STDIN and returns any array items / lines which contain an exact match of the parameters supplied.

When multiple parameters are supplied they are concatenated into the search string and white space delimited. eg all three of the below are the same:

match "a b c"
match a\sb\sc
match a b c
match a    b    c

If you want to return everything except the search string then use !match


Match every occurrence of search string

<stdin> -> match search string -> <stdout>

Match everything except search string

<stdin> -> !match search string -> <stdout>


Match Wed

» ja [Monday..Friday] -> match Wed

Match everything except Wed

» ja [Monday..Friday] -> !match Wed


match is data-type aware so will work against lists or arrays of whichever Murex data-type is passed to it via STDIN and return the output in the same data-type.


  • match
  • !match
  • list.string

See Also

  • 2darray: Create a 2D JSON array from multiple input sources
  • a (mkarray): A sophisticated yet simple way to build an array or list
  • append: Add data to the end of an array
  • count: Count items in a map, list or array
  • ja (mkarray): A sophisticated yet simply way to build a JSON array
  • jsplit: Splits STDIN into a JSON array based on a regex parameter
  • map: Creates a map from two data sources
  • msort: Sorts an array - data type agnostic
  • prefix: Prefix a string to every item in a list
  • prepend: Add data to the start of an array
  • pretty: Prettifies JSON to make it human readable
  • regexp: Regexp tools for arrays / lists of strings
  • suffix: Prefix a string to every item in a list
  • ta (mkarray): A sophisticated yet simple way to build an array of a user defined data-type

This document was generated from builtins/core/lists/regexp_doc.yamlopen in new window.

Last update:
Contributors: Laurence Morgan,Laurence Morgan,Laurence