PageRenderTime 23ms queryTime 38ms sortTime 0ms getByIdsTime 1ms findMatchingLines 2ms

1+ results for 'regex ansi lang:go' (23 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