Returns group value in given subject from compiled regular expression.
The functions 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_GROUP
if no group matches.E_REGEX_NO_MATCH
if the pattern does not match.Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(regex_type), | intent(inout) | :: | regex |
Regular expression type. |
||
character(len=*), | intent(in) | :: | subject |
Input string. |
||
character(len=*), | intent(in) | :: | name |
Group name. |
||
character(len=:), | intent(out), | allocatable | :: | value |
Group value. |