We only support the match
process in the hardware design, the return values should be a group of the start/end offset pairs if zero or more characters at the beginning of the string match the regular expression pattern.
The difference between match
and search
can be explained as:
Note
Pattern: “app”
String: “Pineapple”
Match result: Mismatch [-1, -1]
Search result: Match [4, 7]