Given a regular expression, is there a library or webservice which will give the human/non-programmer an English description?
For example, .+
=> one or more characters
$ means "Match the end of the string" (the position after the last character in the string).
[] denotes a character class. () denotes a capturing group. (a-z0-9) -- Explicit capture of a-z0-9 . No ranges.
Example 4: Solution: As we know, any number of a's means a* any number of b's means b*, any number of c's means c*. Since as given in problem statement, b's appear after a's and c's appear after b's. So the regular expression could be: R = a* b* c*
There are also two types of regular expressions: the "Basic" regular expression, and the "extended" regular expression. A few utilities like awk and egrep use the extended expression. Most use the "basic" regular expression. From now on, if I talk about a "regular expression," it describes a feature in both types.
There is an excellent site called http://regex101.com that does exactly that, as well. It also provides access to different regex engines, allows you to save and debug your regexes and test strings...very nice.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With