Skip to content
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

multiple results not working #2

Open
ghost opened this issue Jun 2, 2020 · 1 comment
Open

multiple results not working #2

ghost opened this issue Jun 2, 2020 · 1 comment

Comments

@ghost
Copy link

ghost commented Jun 2, 2020

Hi,

Hope you are all well !

I defined a pattern file like this:

1	[13][a-km-zA-HJ-NP-Z0-9]{26,33}$	bitcoin-wallet
2	([a-zA-Z0-9_\-\.]+)@([a-zA-Z0-9_\-\.]+)\.([a-zA-Z]{2,5})$	email-address
3	(?:https?://)?(?:www)?(\S*?\.onion)\b	onion-domain
4	(https?\:)?(//)(www[\.])?(twitter.com/)([a-zA-Z0-9_]{1,15})[\/]?	twitter-account

using the following query:

x0rzkov@protonmail.com
1HB5XMLmzFVj8ALj6mfBsbifRoD4miY36v
https://twitter.com/x0rxkov
random test sentence
https://twitter.com/twitter

And it s returning only the last result in the data attribute.

Is there something that I am doing wrong ? Is it possible to have multiple matches from the dict ?

Thanks in advance for any insights or inputs on this issue.

Cheers,
X

@DigDeeply
Copy link
Owner

DigDeeply commented Aug 11, 2020

Hi,

Sorry for the Late Reply, And Sorry for my English is not very well.😅
I don't know if I understand correctly. I think what you want to is to get the pattern match groups?

This pattern search uses DAG scan, not the really regex, If you want to get the match groups, you can run regex match yourself for the return data in the RegexLinev.Expr filed.
It runs only with the selected pattern, It cost not much time.

image

Cheers

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

1 participant