The Universal Regular Expression CompilerFourth Edition

Readable. Composable. Universal.

Express pattern intent in the textual language or a host-language Simply API. The shared compiler analyzes that intent and emits an artifact for the target profile you choose.

pattern.ts
STRling · TypeScript
import * as s from '@strling-lang/strling/simply';

const digit = s.inChars(s.between('0', '9'));
const separator = s.may(s.inChars('-', '.', ' '));
const phone = s.merge(
  s.start(),
  s.capture(digit.rep(3)),
  separator,
  s.capture(digit.rep(3)),
  separator,
  s.capture(digit.rep(4)),
  s.end(),
);
From intent to RegEx

Readable structure. Familiar output.

This source-confirmed TypeScript example composes anchors, captures, digits, optional separators, and sequence into one value.

STRling input
import * as s from '@strling-lang/strling/simply';

const digit = s.inChars(s.between('0', '9'));
const separator = s.may(s.inChars('-', '.', ' '));
const phone = s.merge(
  s.start(),
  s.capture(digit.rep(3)),
  separator,
  s.capture(digit.rep(3)),
  separator,
  s.capture(digit.rep(4)),
  s.end(),
);
/^((?:[0-9]){3})(?:[\x20\x2d.])?((?:[0-9]){3})(?:[\x20\x2d.])?((?:[0-9]){4})(?![\s\S])/u

The compiler emits this pattern and its Unicode flag for the ECMAScript 2024 target profile. Follow the TypeScript compilation walkthrough to run it with RegExp.

Why the abstraction helps

Patterns become maintainable software

STRling keeps regular expressions powerful while moving human intent into names, values, and composition.

01

Readability

Method names such as merge, may, group, digit, and behind expose intent that symbols alone can hide.

02

Composition

Build a useful fragment once, give it a domain name, and combine it with other Pattern values.

03

Discoverability

Typed hosts can expose autocomplete and signatures; other bindings still present a consistent named API.

04

Maintainability

Change a small building block without manually splicing a dense expression string.

05

Shared concepts

The canonical repository carries 17 bindings organized around the same pattern-building vocabulary.

06

Explicit portability

Versioned target profiles record capability and lowering constraints for exact engines and settings.

See the full RegEx vs STRling case

Language ecosystem

Meet STRling where you write software

Seventeen bindings are represented in canonical source. Registry state is reported separately from source availability.

C#

Registry published

Install the NuGet package with its Windows native assets.

NuGet · 4.0.3 · Supported
View C# binding

Go

Git distribution

Go records the pseudo-version v0.0.0-20261118220028-d01ac3785736 for this product tag. Supply the matching native library.

Go module from Git · go-v4.0.3 · Supported
View Go binding

Python

Registry published

PyPI provides CPython 3.12 wheels for Windows x86-64 and manylinux 2.34 x86-64, plus a source archive.

PyPI · 4.0.3 · Supported
View Python binding

Rust

Registry published

Install the Rust reference kernel and facade from crates.io.

crates.io · 4.0.3 · Supported
View Rust binding

Swift

Git distribution

Build with swift build --package-path strling/bindings/swift or use that subtree as a local SwiftPM dependency. Supply the matching native library.

SwiftPM from Git · swift-v4.0.3 · Supported
View Swift binding

TypeScript

Registry published

The ESM package includes the canonical WebAssembly compiler and provides an explicit Node loader.

npm · 4.0.3 · Preview
View TypeScript binding

Explore all 17 bindings

Learn

Build your first pattern

Use the legacy tutorial packages to compose a phone-number pattern, turn it into a native regular expression, and choose your next concept.

Fourth Edition

STRling 4.0.3

STRling 4.0.3 is the stable Fourth Edition release, published on 2026-11-19. Independent public verification completed 232 checks across the 16 distribution routes authorized for initial publication. C++ is available as a direct build, with ConanCenter admission deferred.

Open source

Public code. Evidence-first docs.

STRling’s canonical compiler and binding work is developed on GitHub under the Apache License 2.0. This website is the user surface; GitHub remains the development surface.