Tell us what’s happening:
Trying to see if you found some regex solutions, trying to improve my regex skills
**Your browser information:**
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.102 Safari/537.36
Challenge: DNA Pairing
Link to the challenge:
It’s not a particularly good place to use regex because the only possible input is a string of arbitrary length containing some combination of four characters in some arbitrary order, using regex will massively overcomplicate the task. You don’t need to find a pattern (which is the purpose of regex), you need to iterate through the characters and do something for each one (which regex is not at all designed to do)
1 Like