dm_regex_match Function

public function dm_regex_match(regex, subject) result(rc)

Returns E_NONE if given subject matches the compiled regular expression.

The function returns the following error codes:

  • E_NULL if regular expression context is not associated.
  • E_REGEX if a PCRE2 library error occured.
  • E_REGEX_EXCEEDED if the number of matches exceeds the O vector size.
  • E_REGEX_NO_MATCH if the pattern does not match.

Arguments

Type IntentOptional Attributes Name
type(regex_type), intent(inout) :: regex

Regular expression type.

character(len=*), intent(in) :: subject

Input string to match against.

Return Value integer


Calls

proc~~dm_regex_match~~CallsGraph proc~dm_regex_match dm_regex_match pcre2_match pcre2_match proc~dm_regex_match->pcre2_match pcre2_match_data_create pcre2_match_data_create proc~dm_regex_match->pcre2_match_data_create pcre2_match_data_free pcre2_match_data_free proc~dm_regex_match->pcre2_match_data_free