Skip to content

Regex not working as expected: last 7 characters are not matching #81

@VityaSchel

Description

@VityaSchel

Hello. First of all I would like to thank you for your work and adding regex. But it seems I can't match last 7 characters in onion address (before .onion).

This example works:

> ./mkp224o -d ../test "...............................................ffff"
set workdir: ../test/
filters:
	...............................................ffff
in total, 1 filter
using 4 threads
5h6qylfywhcrm5cbjtdy6cxq5f7ao4hkxjtq4p2hd2vczxzffffoxryd.onion
oz4mpcslnjkuznvzjzkykhe2hhs777i4jko5un5cyipb33rfffftmsyd.onion
rc4eq533eu2ub7qyhdrbnknegstpsbrrpz22eajwroesunkffhfieead.onion
4vi6mkfrg52idbkw3xokx72n6m3sovuqoxi22gdfsnuw7uzffff3moqd.onion

But when you try to add characters after that and match last 4 chars, it just can't find it:

> ./mkp224o -d ../test "......................................................yd"
set workdir: ../test/
filters:
	......................................................yd
in total, 1 filter
using 4 threads
^Cwaiting for threads to finish... done.

I noticed that all addresses has "d" in end, so I tried matching character before it:

> ./mkp224o -d ../test "......................................................y"
set workdir: ../test/
filters:
	......................................................y
in total, 1 filter
using 4 threads
^Cwaiting for threads to finish... done.

Not working :(

Also why is there no "$" to match end of string?

And why sometimes it replaces one char in matching string?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions