Readability
Method names such as merge, may, group, digit, and behind expose intent that symbols alone can hide.
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.
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(),
);This source-confirmed TypeScript example composes anchors, captures, digits, optional separators, and sequence into one value.
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(),
);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.
STRling keeps regular expressions powerful while moving human intent into names, values, and composition.
Method names such as merge, may, group, digit, and behind expose intent that symbols alone can hide.
Build a useful fragment once, give it a domain name, and combine it with other Pattern values.
Typed hosts can expose autocomplete and signatures; other bindings still present a consistent named API.
Change a small building block without manually splicing a dense expression string.
The canonical repository carries 17 bindings organized around the same pattern-building vocabulary.
Versioned target profiles record capability and lowering constraints for exact engines and settings.
Seventeen bindings are represented in canonical source. Registry state is reported separately from source availability.
Install the NuGet package with its Windows native assets.
View C# bindingGo records the pseudo-version v0.0.0-20261118220028-d01ac3785736 for this product tag. Supply the matching native library.
View Go bindingPyPI provides CPython 3.12 wheels for Windows x86-64 and manylinux 2.34 x86-64, plus a source archive.
View Python bindingInstall the Rust reference kernel and facade from crates.io.
View Rust bindingBuild with swift build --package-path strling/bindings/swift or use that subtree as a local SwiftPM dependency. Supply the matching native library.
View Swift bindingThe ESM package includes the canonical WebAssembly compiler and provides an explicit Node loader.
View TypeScript bindingUse the legacy tutorial packages to compose a phone-number pattern, turn it into a native regular expression, and choose your next concept.
Use canonical user documentation for literals, sets, quantifiers, captures, lookarounds, anchors, diagnostics, and portability.
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.
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.