Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Regular expression to English [closed]

Tags:

regex

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

like image 469
Esben Skov Pedersen Avatar asked Nov 25 '10 07:11

Esben Skov Pedersen


People also ask

What does '$' mean in regex?

$ means "Match the end of the string" (the position after the last character in the string).

What's the difference between () and [] in regular expression?

[] denotes a character class. () denotes a capturing group. (a-z0-9) -- Explicit capture of a-z0-9 . No ranges.

What is regular expression examples?

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*

What are different types of regular expression?

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.


1 Answers

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.

regex101 screenshot

like image 182
Tim Pietzcker Avatar answered Sep 24 '22 21:09

Tim Pietzcker