Files
marqdo/tests/lib/re-smoke.mq.md
T
cflmyandCursor b5c07385e9 feat(markup): finish v0.3 stock migration and green gold
Migrate remaining .mq.md (tests/ext/public/examples), stop elevating local assigns to params, inject form_target in Go libweb, and skip live LLM gold without a real key.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-13 23:43:44 +08:00

510 B


title: lib/re smoke import re:lib/re.mq.md

main

ok = > re.is_match text="abc123" pattern="\d+"

print text=ok

m = > re.find text="ab12cd34" pattern="\d+"

print text=m

all = > re.find_all text="a1b22c333" pattern="\d+" joined = > join value=all sep=","

print text=joined

rep = > re.replace text="a1b2c3" pattern="\d+" with="X" count=2

print text=rep

parts = > re.split text="a-b-c" pattern="-" pj = > join value=parts sep="|"

print text=pj