Plug-in Reference — Structures — MATCH_REGEX_INFO_EX

# MATCH_REGEX_INFO_EX

Used by Editor_MatchRegex inline function ( EE_MATCH_REGEX message).

    typedef struct _MATCH_REGEX_INFO_EX {
    	size_t cbSize; // sizeof( MATCH_REGEX_INFO_EX )
    	UINT64 nFlags;
    	LPCWSTR pszRegex;
    	LPCWSTR pszText;
    	LPCWSTR pszReplace;
    	LPWSTR pszResult;
    	UINT cchResult;
    } MATCH_REGEX_INFO_EX;

## Members

cbSize

[in] Size of this data structure, in bytes. Set this member to sizeof( MATCH_REGEX_INFO_EX ) before sending the EE_MATCH_REGEX message.

nFlags

[in] Specifies a combination of the following values.

FLAG_FIND_CASE | Matches cases.
FLAG_FIND_FUZZY | This special flag uses fuzzy matching, and disables regular expressions. You cannot combine fuzzy matching with regular expressions. Cannot be combined with FLAG_FIND_REGEX_BOOST, FLAG_FIND_REGEX_ONIGMO, FLAG_FIND_REGEX_ONIGMO_PERL, or FLAG_FIND_SEPARATE_CRLF.
FLAG_FIND_REGEX_BOOST | Uses Boost.Regex as the regular expression engine.
FLAG_FIND_REGEX_ONIGMO | Uses Onigmo as the regular expression engine, using the Ruby syntax.
FLAG_FIND_REGEX_ONIGMO_PERL | Uses Onigmo as the regular expression engine, using the Perl syntax.
FLAG_FIND_SEPARATE_CRLF | Treats CR and LF separately.

pszRegex

[in] Specifies a regular expression to search for.

pszText

[in] Specifies a string to search.

pszReplace

[in] Specifies a replace expression.

pszResult

[out] Specifies a pointer to the buffer to receive the replaced string.

cchResult

[in] Specifies the size of the buffer in characters.

## Version

Supported on Version 15.7 or later.