PageRenderTime 310ms queryTime 40ms sortTime 0ms getByIdsTime 0ms findMatchingLines 1ms

1+ results for 'regex ansi lang:go' (310 ms)

Not the results you expected?
msgviewer.go https://git.sr.ht/~sircmpwn/aerc/ | Go | 712 lines
                    
8	"os/exec"
                    
9	"regexp"
                    
10	"strings"
                    
22
                    
23var ansi = regexp.MustCompile("\x1B\\[[0-?]*[ -/]*[@-~]")
                    
24
                    
492			}
                    
493			if f.Regex.Match([]byte(header)) {
                    
494				filter = exec.Command("sh", "-c", f.Command)
                    
625					text := scanner.Text()
                    
626					text = ansi.ReplaceAllString(text, "")
                    
627					io.WriteString(pv.sink, text+"\n")
                    
                
 

Source

Language