Module regex
ballerina/regex Ballerina library
Deprecated0.7.0-alpha8
Package overview
This package provides the following regex utility functions.
matches
- Checks whether a string matches a given regex.replaceAll
- Replaces every occurrence of a substring that matches a given regex in a string, with another string provided.replaceFirst
- Replaces the first occurrence of a substring that matches a given regex in a string, with another string provided.split
- Splits a string using a given regex delimiter and returns an array of the split elements.