Am I the only person who thinks that things like this are totally unnecessary? Is learning/reading regular expressions really that difficult for most people?<p>Here's the subset of regular expressions that has gotten me through nearly all of the regular expressions I've ever needed to write. As a plus, it has no dependencies!<p>* - zero or more of the preceding character/group<p>+ - one or more of the preceding character/group<p>? - zero or one of the preceding character/group<p>$ - end of line<p>^ - beginning of line<p>. - one of any one character<p>\ - escape the following character (for a literal '$' or '.', for example)<p>[<some characters>] - one of the given characters<p>[a-zA-Z0-9] - letters and numbers inside a group can have ranges!<p>(<something>) - capturing group (anything that matches inside it will be accessible in the match object)<p><thing1>|<thing2> - either the first thing, or the second thing (or the third, or the fourth...)<p>This isn't a complete, or even precise, definition, but knowing those things will get you to the point where you can read and write expressions like this:<p>^(-|+)?[0-9]*\.[0-9]+$<p>which matches things like -.2, 0.123, +0.1, etc. (floating point numbers, basically). This likely has bugs, since I haven't tested it ;)