You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My demand is to match one string to multi regex. And I write code below, I get a Database and what shall I do next?I don't find right method to call in Database or I missed something?
package main
import"github.com/flier/gohs/hyperscan"funcmain(){
regs:= []hyperscan.Expression{
hyperscan.Expression("..."),
hyperscan.Expression("..."),
}
db:=new(hyperscan.DatabaseBuilder)
db.AddExpressions(regs...).Build()
// what shall I do next? is there some method like db.Match("target string") or something?
}
The text was updated successfully, but these errors were encountered:
My demand is to match one string to multi regex. And I write code below, I get a
Database
and what shall I do next?I don't find right method to call inDatabase
or I missed something?The text was updated successfully, but these errors were encountered: