Skip to content

Go regularization problem #70551

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
yupor5 opened this issue Nov 25, 2024 · 5 comments
Closed

Go regularization problem #70551

yupor5 opened this issue Nov 25, 2024 · 5 comments

Comments

@yupor5
Copy link

yupor5 commented Nov 25, 2024

{"match": ""EventID":"(?!462[4-7]"|4634"|464[7-8]"|467[3-4]"|4688"|469[89]"|470[0-5]"|4719"|472[02-9]"|473[0-578]"|474[0-9]"|475[0-9]"|476[0-9]"|477[0-9]"|478[0-1]"|4794"|479[89]"|480[0-3]"|514[02-5]"|515[0-9]"|5168"|537[6-7]"|641[69]"|642[0-4]"|7031"|7034"|7036"|7040"|7045")\d*"","example": [
"{"Computer":"DESKTOP-02VFIOJ","EventData":{"Data_SubjectUserName":"wonder","Data_ProcessId":"0x1fd4","Data_HandleId":"0x858","Data_ObjectServer":"Security","Data_AccessMask":"0x1","Data_SubjectUserSid":"S-1-5-21-2510928271-3594568744-4108095923-1001","Data_SubjectDomainName":"DESKTOP-02VFIOJ","Data_ObjectType":"Key","Data_ObjectName":"\\REGISTRY\\MACHINE\\SOFTWARE\\Classes\\CLSID\\{41945702-8302-44A6-9445-AC98E8AFA086}\\Patterns\\8","Data_SubjectLogonId":"0x137ee86","Data_AccessList":"%%4432","Data_ProcessName":"C:\\Windows\\System32\\RuntimeBroker.exe","Data_ResourceAttributes":"-"},"Source":"Microsoft-Windows-Security-Auditing","OpcodeText":"信息","Opcode":"0","Keywords":"审核成功","EventID":"4663","UserData":{},"Channel":"Security","Message":"试图访问对象。","timestamp":"2021-11-08T11:54:58.1151745+08:00","ProcessName":"System","UserID":"","TaskText":"Registry","LevelText":"信息","Level":"0","Task":"12801"}"
]} This regularization prompt is reporting an error. I tested this regularization using Perl and found no problem. However, this is a bug,
imageAnd go language prompts
image

@gabyhelp
Copy link

Related Issues

(Emoji vote if this was helpful or unhelpful; more detailed feedback welcome in this discussion.)

@seankhliao
Copy link
Member

Duplicate of #70437

@seankhliao seankhliao marked this as a duplicate of #70437 Nov 25, 2024
@seankhliao seankhliao closed this as not planned Won't fix, can't repro, duplicate, stale Nov 25, 2024
@seankhliao
Copy link
Member

we have no intention of supporting the same regex as perl

@yupor5
Copy link
Author

yupor5 commented Nov 25, 2024

You have already supported Perl, only stating that there are some errors

@ianlancetaylor
Copy link
Contributor

We do not support everything that Perl supports. See https://swtch.com/~rsc/regexp/regexp1.html for why Go regular expressions do not support ?!.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants