Regex Library Datapack
⚪ Last updated 2024🖼️ Gallery (1 images)
🔍 Analysis
- 👍 1.7% endorsement rate — high engagement, a strong quality signal
- 🏆 #141 of 2046 datapack mods in this game by downloads
📋 About This Mod
**This library requires (https://modrinth.com/datapack/moxlib) to function.** # GMDU Regex Library **by Gears and Moxvallix.** ## Overview This library provides a simple regular expression parser, working entirely in mcfunction. ### Current Features and Metacharacters Character | Example | Description ----------|----------------------|----------------- `` | `` | Character set `` | `` | Inverted character set `` | `` | Character range `()` | `(ab)` | Group `.` | `.` | Wildcard `\|` | `(a\|b)` | Or `^` | `^abc` | Beginning of string `$` | `xyz$` | End of string `?` | `ab?` | Zero or one of the preceding token `*` | `ab*` | Zero or more of the preceding token `+` | `ab+` | One or more of the preceding token `\` | `\+` | Escape following character If you need help creating your regex pattern, we recommend using (https://regexr.com/). *Not all features from RegExr are supported in our library, see table above.* ## Getting Started This library uses a simple api. The string to match is given in `target`, and the regex to match with is set in `pattern`. These are set in the storage, `regex:api/match` To run the match, run `function regex:api/match`. ### Example ``` data modify storage regex:api/match target set value "Hello, World!" data modify storage regex:api/match pattern set value "+" function regex:api/match ``` ``` { success: 1b, output: } ```
This library requires (https://modrinth.com/datapack/moxlib) to function.
# GMDU Regex Library by Gears and Moxvallix.
## Overview This library provides a simple regular expression parser, working entirely in mcfunction.
### Current Features and Metacharacters Character | Example | Description ----------|----------------------|----------------- `[]` | `` | Character set `[^]` | `[^abc]` | Inverted character set `` | `` | Character range `()` | `(ab)` | Group `.` | `.` | Wildcard `\|` | `(a\|b)` | Or `^` | `^abc` | Beginning of string `$` | `xyz$` | End of string `?` | `ab?` | Zero or one of the preceding token `` | `ab` | Zero or more of the preceding token `+` | `ab+` | One or more of the preceding token `\` | `\+` | Escape following character
If you need help creating your regex pattern, we recommend using (https://regexr.com/).
Not all features from RegExr are supported in our library, see table above.
## Getting Started This library uses a simple api. The string to match is given in `target`, and the regex to match with is set in `pattern`. These are set in the storage, `regex:api/match`
To run the match, run `function regex:api/match`.
### Example ``` data modify storage regex:api/match target set value "Hello, World!" data modify storage regex:api/match pattern set value "+" function regex:api/match ``` ``` { success: 1b, output: ["H","e","l","l","o"] } ```
📊 Mod Details
- Game
- Minecraft Data Packs
- Author
- moxvallix
- Version
- 0.1.2
- Downloads
- 660
- Endorsements
- 11
- Category
- datapack
- Created
- 2/15/2023
- Updated
- 6/19/2024
- Game Versions
- 1.21
- Tags
- library, utility
🔧 How to Install Minecraft Data Packs Mods
Download from Modrinth. Use Prism Launcher or drop into your mods folder.
📖 Full step-by-step install guide for Minecraft Data Packs →
Visit the official mod page for specific installation instructions for this mod.
🎮 Need cheat codes or console commands? Check ur gaming wiki for Minecraft Data Packs commands, item IDs, and more.
❓ Frequently Asked Questions
Which Minecraft Data Packs versions does Regex Library Datapack support?
The author lists 1.21. Other versions may work but are untested by the author.
What is the latest version of Regex Library Datapack?
Version 0.1.2, published 2024-06-19 with 660 downloads recorded at the source.
Keep browsing — more Minecraft Data Packs mods await
