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

Other versions

See more...

Metadata

Released date: over 5 years ago

Version: 0.7.0-alpha8


Security

No known vulnerabilities in libraries

Checked on 2026-11-23 via OSV.dev


Compatibility

Platform: java11

Ballerina version: slalpha5

GraalVM compatible: Yes


Pull count

Total: 642824

Current verison: 1326


Weekly downloads