Introduction
gregex
provides support for regular expressions, encapsulating the standard library regexp
at the core, greatly simplifying regex usage, and employs a parsing cache design to improve execution efficiency.
Usage:
import "github.com/gogf/gf/v2/text/gregex"
API Documentation:
https://pkg.go.dev/github.com/gogf/gf/v2/text/gregex
Documents
📄️ Regular Expressions - Usage
Demonstrates how to use regular expressions in the GoFrame framework for basic text matching operations. Through a simple example code, you can learn how to extract and process information from strings, providing an important reference for developers in text processing.
📄️ Regular Expressions - Methods
Using GoFrame framework for regular expression matching, including common methods such as IsMatch, Match, MatchAll, and more, with function definitions and examples. The GoFrame framework is used in various regex processing scenarios for its efficient execution performance. This document provides teaching through specific examples to help you better understand and apply these features.