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.

Import

import ballerina/regex;Copy

Metadata

Released date: over 3 years ago

Version: 0.7.0-alpha8


Compatibility

Platform: java11

Ballerina version: slalpha5

GraalVM compatible: Yes


Pull count

Total: 500632

Current verison: 1296


Weekly downloads


Other versions

See more...