79467402

Date: 2025-02-25 17:33:43
Score: 1
Natty:
Report link

Would this work?

REGEX PATTERN (PRCE2 Flavor)(Flags: Global (g))

 (?=.*?(?P<a>A)?.*)(?=.*(?P<b>B).*)?(?=.*(?P<c>C).*)?

Regex demo: https://regex101.com/r/1oYDOF/1

NOTES:


Great question! I did not know you can capture strings with lookahead. Fantastic!!!! This question opened a whole new world for me in regex. Thank you!

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: rich neadle