marqdo

Mid stdlib — regex and encodingok

features/08-re-encoding.mq.md

文档

re:lib/re.mq.mdenc:lib/encoding.mq.md

Regex and encoding in lib/

说明

Mid-tier stdlib: everyday primitives stay in lib/, not ABI plugins.

main

说明
`ok` = > re.is_match text="[email protected]" pattern="^[^@]+@[^@]+$"
`tok` = > enc.base64_encode text="marqdo"
`hex` = > enc.hex_encode text="ok"
> print text=ok
> print text=tok
> print text=hex
  1. ok
    > print text=mid-m1-ok
  2. else
    > print text=mid-m1-fail
Functions
Variables
  • description text
    lib/re + lib/encoding without plugins (Mid M1)
  • hex text
    6f6b
  • markup text
    occlusion
  • ok bool
    True
  • title text
    Mid stdlib — regex and encoding
  • tok text
    bWFycWRv
可执行知识(辅助)

运行与结果

True bWFycWRv 6f6b mid-m1-ok
完整源码
---
markup: occlusion
title: Mid stdlib — regex and encoding
description: lib/re + lib/encoding without plugins (Mid M1)
import:
  re: lib/re.mq.md
  enc: lib/encoding.mq.md
---

# Regex and encoding in lib/

Mid-tier stdlib: everyday primitives stay in `lib/`, not ABI plugins.

# main

**`ok` = > re.is_match text="[email protected]" pattern="^[^@]+@[^@]+$"**
**`tok` = > enc.base64_encode text="marqdo"**
**`hex` = > enc.hex_encode text="ok"**
> print text=`ok`
> print text=`tok`
> print text=`hex`
1. `ok`
  > print text=mid-m1-ok
2. *
  > print text=mid-m1-fail

Variable