Skip to content

Commit

Permalink
docs: add parse/rparse
Browse files Browse the repository at this point in the history
  • Loading branch information
linux-china committed Apr 26, 2024
1 parent 552b6c1 commit 54ef0de
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions info/stdlib.md
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,11 @@ quote/double text if not quoted/double quoted.
- `quote("hello world") # 'hello world'`
- `double_quote("hello world") # "hello world"`

### parse/rparse

- parse: use wild match - `parse("Hello World","{greet} {name}")["greet"]`
- rparse: use regex group - `rparse("Hello World","(\\w+) (\\w+)")[1]`

### format_bytes/to_bytes

Convert bytes to human-readable format, and vice versa. Units: `B`, `KB`, `MB`, `GB`, `TB`, `PB`, `EB`, `ZB`, `YB`.
Expand Down

0 comments on commit 54ef0de

Please sign in to comment.