Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for matchPartialLongest (0.22 sec)

  1. src/regexp/exec_test.go

    	re.longest = true
    	return re.FindStringSubmatchIndex(text), "[longest]"
    }
    
    var match = []func(*Regexp, *Regexp, string) (bool, string){
    	matchFull,
    	matchPartial,
    	matchFullLongest,
    	matchPartialLongest,
    }
    
    func matchFull(re, refull *Regexp, text string) (bool, string) {
    	refull.longest = false
    	return refull.MatchString(text), "[full]"
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:36:03 UTC 2024
    - 20.7K bytes
    - Viewed (0)
Back to top