30+ Functions Standard
PBXB64 V21 combines 30+ built-in string functions with EVAL$, StringX comparisons, wildcard matching, searching, replacing, and REGEX helpers. ANSI and Unicode operations use the same intrinsics: LEN, LEFT$, RIGHT$, MID$, MID$ assignment, INSTR, UCASE$, LCASE$, TRIM$, LSET, and RSET work with both STRING and WSTRING.
REGEXPR 1.25 Regular Expressions
PBXB64 V21 exposes the integrated REGEXPR 1.25 engine through PB-compatible statements and StringX helpers. It supports groups and backreferences, bounded quantifiers, alternation, word boundaries, character classes, greedy and shortest matching, case control, binary-safe target strings, match positions, captured text, and global replacement.
Extract captured data
A single expression finds the match and returns capture group 1. No manual scanning, delimiter counting, or temporary parser state is needed.
Reformat every match
$0, $1, and ${1}-style references make structured replacement concise. The replacement runs over all matches.
Get position and length
The statement form returns 1-based position and length, so existing PB-style code can continue with MID$ or use the offsets in a parser.
PB-dialect replacement
The statement syntax supports PB-style \00 through \99 replacement tags and reports the next position together with the result.
ANSI String Functions
Full ANSI string API: LEN, LEFT$, RIGHT$, MID$, INSTR, UCASE$, LCASE$, TRIM$, LTRIM$, RTRIM$, SPACE$, STRING$, CHOOSE$, FORMAT$, STR$, VAL, HEX$, OCT$, BIN$.
WSTRING - Wide Character Strings
Full Unicode support with no special commands: LEN, LEFT$, RIGHT$, MID$, INSTR, UCASE$, LCASE$, and TRIM$ work directly on WSTRING. UTF-16 encoding, correct length counting, and BYREF passing.
No separate W-commands needed: LEN, LEFT$, RIGHT$, MID$, INSTR, UCASE$, LCASE$, and TRIM$ detect WSTRING automatically. Correct character counting (not byte counting) for UTF-16 content.
LSET / RSET - Fixed-Width Padding
LSET and RSET are real implementations (not stubs), producing left-aligned and right-aligned fixed-width strings. Also: CSET/CSET$ for centering.
BYREF String Parameters
Strings passed BYREF are correctly handled with caller-owned lifetime and GEP-based addressing.
BYREF string parameters pass the address (not the value), allowing the callee to modify the caller's string. String cleanup is caller-owned, preventing double-free.
PBXB64 is part of the PBX-Compiler package. Free for private use, cleanly licensed for business.