Files
marqdo/lib/re.mq.md
T
cflmyandCursor bfb10d172b feat(markup): adopt v0.3 as sole mapping (** code, * return)
Make prose-unified Markup the only runtime: bold segments are executable,
italic is return, params can be inferred from body/prose, with no v0.2 dual
mode. Migrate lib and structure/keywords golds; gate on tests/markup-v03.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-13 20:38:53 +08:00

39 lines
660 B
Markdown

---
title: lib/re
description: Regular expressions (Mid M1). Unicode; no backreferences.
---
## is_match
+ `text`
+ `pattern`
*> host_re_is_match text=`text` pattern=`pattern`*
## find
+ `text`
+ `pattern`
*> host_re_find text=`text` pattern=`pattern`*
## find_all
+ `text`
+ `pattern`
*> host_re_find_all text=`text` pattern=`pattern`*
## replace
+ `text`
+ `pattern`
+ `with`
+ `count`=None
Optional `count=` limits replacements (`None` = all).
*> host_re_replace text=`text` pattern=`pattern` with=`with` count=`count`*
## split
+ `text`
+ `pattern`
*> host_re_split text=`text` pattern=`pattern`*