match
)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
[
"Wednesday"
]
Match everything except Wed
» ja [Monday..Friday] -> !match Wed
[
"Monday",
"Tuesday",
"Thursday",
"Friday"
]
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.str
!list.str
prefix
): Prefix a string to every item in a listsuffix
): Prefix a string to every item in a listappend
): Add data to the end of an arraycount
): Count
items in a map, list or array2darray
): Create a 2D JSON array from multiple input
sourcesja
):
A sophisticated yet simply way to build a JSON arraymap
):
Creates a map from two data sourcesta
):
A sophisticated yet simple way to build an array of a user defined
data-typeprepend
): Add data to the start of an arrayregexp
): Regexp tools for arrays / lists of
stringsmsort
):
Sorts an array - data type agnosticjsplit
): Splits stdin into a JSON array based on a
regex parametera
): A
sophisticated yet simple way to stream an array or list (mkarray)This document was generated from builtins/core/lists/match_doc.yaml.
This site's content is rebuilt automatically from murex's source code after each merge to the master
branch. Downloadable murex binaries are also built with the website.
Last built on Wed Jan 15 23:07:50 UTC 2025 against commit b4c4296b4c429617fd41527ea0efef33c52c15ef2b64972.
Current version is 6.4.2063 (develop) which has been verified against tests cases.