Fun with Regex
CodeChefOpen on judge ↗
Anurag just learnt about Regex (Regular expressions) in college. Regex can be understood as a really cool way to represent a certain pattern in the string. Regex has various symbols that have different meanings. One such symbol is the ‘*’ (star symbol) which denotes that a character can be repeated one or many times. For eg: a* represents a, aa, aaa, aaaa and so on. As you can see the star symbol
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start