1
0
mirror of https://github.com/charlienet/go-mixed.git synced 2025-07-18 00:22:41 +08:00
This commit is contained in:
2022-07-26 14:19:40 +08:00
parent 23865214c8
commit 792458a185
5 changed files with 144 additions and 14 deletions

View File

@ -0,0 +1,17 @@
package compiledbuffer
import (
"testing"
"github.com/dlclark/regexp2"
)
func TestCom(t *testing.T) {
regex, err := regexp2.Compile(`^\d{11}[;](?!(37|38))\d{2}\d{6}$`, regexp2.None)
if err != nil {
t.Fatal(err)
}
t.Log(regex.MatchString("14610522152;37764800"))
t.Log(regex.MatchString("14610522152;33764800"))
}