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
Apply directly to this bounty by opening an application here.
Questions?
Do you have a specific question about this bounty? Join the live conversation on the FHE.org discord server here. You can also send us an email at: bounty@zama.ai
The text was updated successfully, but these errors were encountered:
Winner
See the winning solution here
Overview
Create a homomorphic regular expression engine that operate on encrypted bytes of an ASCII string and write a tutorial about it.
Description
Your implementation should support following regular expression features:
Contains matching
/abc/
should only match with strings containingabc
(e.g.,abc
,123abc
,abc123
,123abc456
)Start matching
/^abc/
should only match strings starting withabc
(e.g.,abc
,abc123
)End matching
/abc$/
should only match strings ending withabc
(e.g.,abc
,123abc
)Exact matching
/^abc$/
should only match the stringabc
Case-insensitive matching
/^abc$/i
should only match withabc
,Abc
,aBc
,abC
,ABc
,aBC
,AbC
,ABC
Optional matching
/^ab?c$/
should only match withabc
,ac
Zero or more matching
/^ab*c$/
should only match withac
,abc
,abbc
,abbbc
and so onOne or more matching
/^ab+c$/
should only match withabc
,abbc
,abbbc
and so onNumbered matching
/^ab{2}c$/
should only match withabbc
/^ab{3,}c$/
should only match withabbbc
,abbbbc
,abbbbbc
and so on/^ab{2,4}c$/
should only match withabbc
,abbbc
,abbbbc
Alternative matching
/^ab|cd$/
should only match withab
andcd
Any character matching
/^.$/
should only match witha
,b
,A
,B
,?
and so onCharacter range matching
/^[abc]$/
should only match witha
,b
andc
/^[a-d]$/
should only match witha
,b
,c
andd
Character range not matching
/^[^abc]$/
should only not match witha
,b
andc
/^[^a-d]$/
should only not match witha
,b
,c
andd
Escaping special characters
/^\.$/
should only match with.
/^\*$/
should only match with*
[
,]
,$
and so on)And any combination of the features above!
Your implementation should comply with the following:
match
logic, no need to determine match location or matched substringYour PR should comply with the following:
tfhe/examples/regex-engine.rs
tfhe/docs/tutorial/regex-engine.md
Library targeted
Bounty type
Expert bounty
Reward
Related links and references
Submission
Apply directly to this bounty by opening an application here.
Questions?
Do you have a specific question about this bounty? Join the live conversation on the FHE.org discord server here. You can also send us an email at: bounty@zama.ai
The text was updated successfully, but these errors were encountered: