[#BloombergLP-ball-PatternUtil-isMatch] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/ball.adoc[ball]::xref:BloombergLP/ball/PatternUtil.adoc[PatternUtil]::isMatch :relfileprefix: ../../../ :mrdocs: Return `true` if the specified `pattern` matches the specified `inputString`, and `false` if the pattern does not match or is invalid. There are two types of escape sequences that are allowed in `pattern`. (See the function‐level documentation of `PatternUtil::isValidPattern` for the definition of invalid patterns.) A '*` escape sequence in `pattern' matches a single `*` in `inputString`. A '' escape sequence in `pattern` matches a single '' in `inputString`. If `pattern` ends with an unescaped `*`, then `pattern` matches `inputString` if the string indicated by `pattern` (after escape sequence processing) with the final `*` removed is a prefix of `inputString`. Otherwise `pattern` matches `inputString` only if the string indicated by `pattern` (after escape sequence processing) and `inputString` are the same. The behavior is undefined unless both `inputString` and `pattern` are null‐terminated c‐style strings. == Synopsis Declared in `<ball_patternutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static bool isMatch( char const* inputString, char const* pattern); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#