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

rewrite regex without using look-around #22

Open
8 tasks
swanandx opened this issue Oct 19, 2022 · 0 comments
Open
8 tasks

rewrite regex without using look-around #22

swanandx opened this issue Oct 19, 2022 · 0 comments

Comments

@swanandx
Copy link
Owner

Following regex won't compile as regex crate doesn't support look-around.

If possible, can we rewrite them in such a way that they don't use look-around??

  • Internet Protocol (IP) Address Version 6
  • Bitcoin (₿) Wallet Address
  • American Social Security Number
  • Date of Birth
  • JSON Web Token (JWT)
  • Amazon Web Services Access Key
  • Amazon Web Services Secret Access Key
  • YouTube Video ID

Update them in src/data/regex.json

PS: You can run following command in repo if you want to see exact syntax error of regex ( or just use regex crate to compile them one by one )

cargo test validate_regex_examples -- --show-output
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