Match String (match)

Match an exact value in an array

Description

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

Usage

Match every occurrence of search string

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

Match everything except search string

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

Examples

Return matched

Match Wed

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

Ignore matched

Match everything except Wed

» ja [Monday..Friday] -> !match Wed
[
    "Monday",
    "Tuesday",
    "Thursday",
    "Friday"
] 

Detail

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.

Synonyms

See Also


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 Jul 2 22:12:32 UTC 2025 against commit bb72b6fbb72b6fdd502f835172d7d06207ba4ec2c70886c.

Current version is 7.0.2107 (develop) which has been verified against tests cases.