ForgeRegex adds advanced regex tools to ForgeScript for efficient pattern matching, text validation, and data extraction. It integrates smoothly, offering flexible string manipulation without extra libraries.
Run the following command to install the required
npmpackage:npm i https://github.com/xNickyDev/ForgeRegex.git
Next, add this import at the top of your client initialization file:
const{ ForgeRegex }=require("forge.regex")
Here’s an example of how your main file should look:
const{ ForgeClient }=require("@tryforge/forgescript")const{ ForgeRegex }=require("forge.regex")constclient=newForgeClient({ ...options,// Your current configuration options extensions: [newForgeRegex()]})
