Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: citb0in on December 30, 2022, 10:19:12 AM



Title: reimplementing VanityGen's PCRE regular expression function in VanitySearch
Post by: citb0in on December 30, 2022, 10:19:12 AM
Hello all,

Jean-Luc-Pond said that in his version of VanitySearch no RegExp is implemented and available (https://bitcointalk.org/index.php?topic=5112311.msg54147512#msg54147512). However, the original version VanityGen from sam7 contains a regex function (https://github.com/samr7/vanitygen/blob/master/pattern.c#L1602). This is also mentioned in its readme (https://github.com/samr7/vanitygen/blob/master/README#L19-L25).

Does anyone know if there is a modified VanitySearch version available that also allows PCRE/RegEx searches? If not, is there anyone among you with C++ skills who could re-implement the missing code from Sam7 in VanitySearch? Looking forward to your comments.


Title: Re: reimplementing VanityGen's PCRE regular expression function in VanitySearch
Post by: NotATether on December 30, 2022, 12:59:28 PM
I could implement PCRE(2) searches inside VanitySearch from the code in https://github.com/rurban/pcre for a small fee (as my development schedule is traffic jammed).

You cannot just rip samr7's regex functions out and place them in VanitySeerch because they are directly depending on OpenSSL.