HappenLee opened a new issue, #51351: URL: https://github.com/apache/doris/issues/51351
### Search before asking - [x] I had searched in the [issues](https://github.com/apache/doris/issues?q=is%3Aissue) and found no similar issues. ### Description regexp_position(string, pattern, start) → integer Returns the index of the first occurrence of pattern in string, starting from start (include start). Returns -1 if not found: ``` SELECT regexp_position('I have 23 apples, 5 pears and 13 oranges', '\b\d+\b', 5); -- 8 SELECT regexp_position('I have 23 apples, 5 pears and 13 oranges', '\b\d+\b', 12); -- 19 ``` # Advanced work: Implement two functions with default parameters. ``` regexp_position(string, pattern) → integer Returns the index of the first occurrence (counting from 1) of pattern in string. Returns -1 if not found: regexp_position(string, pattern, start) → integer Returns the index of the first occurrence of pattern in string, starting from start (include start) ``` ### Use case _No response_ ### Related issues https://github.com/apache/doris/issues/48203 ### Are you willing to submit PR? - [ ] Yes I am willing to submit a PR! ### Code of Conduct - [x] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
