Files
marqdo/tests/lib/re-smoke.mq.md
T
cflmyandCursor 687c168014 feat(parse): use nested YAML import: maps instead of one-liner binds
Frontmatter imports are now valid YAML (`import:` / `导入:` with bind→target
entries), removing spaced keys. Add `marqdo migrate imports`, hard-error the
old one-liner form, and migrate lib/ext/examples/tests/docs accordingly.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-23 19:33:58 +08:00

514 B

title, import
title import
lib/re smoke
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