W
W
WTFAYD2016-08-01 12:47:42
Java
WTFAYD, 2016-08-01 12:47:42

How to decipher a regular expression?

"(?i)((A[aeiou])|(\s+[aeiou]))\w+?[aeiou]\b"
The result is this:

Input: "Arline ate eight apples and one orange while Anita hadn't any"
Regular expression: "(?i)((A[aeiou])|(\s+[aeiou]))\w+?[aeiou]\b"
Match " ate" at position 6-9
Match " one" at position 27-30
Match " orange" at position 31-37
Match " Anita" at position 44-49

Can you please tell me how this regular expression is decoded?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Ukolov, 2016-08-01
@WTFAYD

Detailed explanation: https://regex101.com/r/hL8tJ7/1

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question