Creates new regular expression type from given pattern. Returns
E_REGEX_COMPILE
on error.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(regex_type), | intent(out) | :: | regex |
Regular expression type. |
||
character(len=*), | intent(in) | :: | pattern |
Pattern to compile. |
||
character(len=:), | intent(out), | optional, | allocatable | :: | error_message |
Error message. |
integer(kind=i8), | intent(out), | optional | :: | error_offset |
Error offset in pattern. |