Snapshot của mingrammer/commonregex: 893★ · Go. 🍫 A collection of common regular expressions for Go
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
A collection of often used regular expressions for Go
Inspired by CommonRegex
This is a collection of often used regular expressions. It provides these as simple functions for getting the matched strings corresponding to specific patterns.
Installation
go get github.com/mingrammer/commonregex
Usage
import (
cregex "github.com/mingrammer/commonregex"
)
func main() {
text := `John, please get that article on www.linkedin.com to me by 5:00PM on Jan 9th 2012. 4:00 would be ideal, actually. If you have any questions, You can reach me at (519)-236-2723x341 or get in touch with my associate at [email protected]`
dateList := cregex.Date(text)
// ['Jan 9th 2012']
timeList := cregex.Time(text)
// ['5:00PM', '4:00']
linkList := cregex.Links(text)
// ['www.linkedin.com', '[email protected]']
phoneList := cregex.PhonesWithExts(text)
// ['(519)-236-2723x341']
emailList := cregex.Emails(text)
// ['[email protected]']
}
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/mingrammer/commonregex là nguồn chính thức.
mingrammer/commonregex có phải mã nguồn mở không?
Có — mingrammer/commonregex phát hành theo license MIT, nghĩa là mã nguồn mở để đọc, fork và (tùy license) tái sử dụng. Mã: github.com/mingrammer/commonregex.
mingrammer/commonregex là gì?
mingrammer/commonregex (mingrammer/commonregex) là dự án Go trên GitHub. Theo mô tả gốc: 🍫 A collection of common regular expressions for Go
Đọc đầy đủ README ở tab phía trên.
Vẫn đang phân vân về commonregex?
Một cú bấm sẽ gửi câu hỏi kèm trang này cho AI — xem AI nói gì về commonregex.