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
I am working with NZB files. The regex is supposed to parse a subject line.
What steps will reproduce the problem?
Add this line to your program. p := regexp.MustCompile(`"(.*?)".*? yEnc
\((.*?)\)`)
What is the expected output? What do you see instead?
When I run the program I get:
user@host:~/sandbox/nzb$ 6g regexTest.go && 6l regexTest.6
user@host:~/sandbox/nzb$ ./6.out
regexp: compiling " "(.*?)".*? yEnc \((.*?)\) ": unmatched '('
panic PC=0x7fe8404b5f28
regexp·MustCompile+0xbb /home/stephen/sandbox/go/src/pkg/regexp/regexp.go:677
regexp·MustCompile(0x4600f8, 0x0, 0x19, 0x0, 0x1, ...)
main·main+0x23 /home/stephen/sandbox/nzb/regexTest.go:7
main·main()
mainstart+0xf /home/stephen/sandbox/go/src/pkg/runtime/amd64/asm.s:54
mainstart()
goexit /home/stephen/sandbox/go/src/pkg/runtime/proc.c:140
goexit()
What is your $GOOS? $GOARCH?
linux amd64
Which revision are you using? (hg identify)
7df3be16abbf tip
Please provide any additional information below.
I am attaching a complete test program so you can see the error.
by linuxhacker100:
Attachments:
The text was updated successfully, but these errors were encountered: