Regular Expressions on Cheat Sheets

19 views
Skip to first unread message

David Child

unread,
Jul 28, 2008, 6:49:40 AM7/28/08
to added-bytes-...@googlegroups.com
I've also been looking at the regex section for the Python and other
programming cheat sheets, and it occurs to me that there is a great
deal of redundancy there. I use the PHP, mod_Rewrite and Regex cheat
sheets, and will be using Python. So I'll have a complete cheat sheet
for regex as well as three small regex syntax sections on the others.

What are your thoughts on this? Do you use the small regex sections?
Are they too small to be useful (on the language-specific cheat
sheets)? Does it belong on some but not others - it's integral to
mod_rewrite, for example, so would it make sense to keep it on that
one?

As regex has its own cheat sheet, would it make more sense just to add
it to a "related cheat sheets" section on the description page? That
way, people who wanted it could find and print it. It would free up
some space on other cheat sheets for more useful information too ...

Dave

--
AddedBytes.com - Web Marketing and Development

hw

unread,
Jul 28, 2008, 7:53:36 AM7/28/08
to added-bytes-...@googlegroups.com
Hi,
I would say that it is better to put it into related cheatsheets sections rather than cluttering up all the cheatsheets with redundant info. We can then have space for more information on the topic.
 
Of course, for mod_rewrite, we don't have much info apart from regex and it makes sense to keep regex there. For other topics which are not so strongly related to regex, I think it would still be useful to give variations of regular expression syntax along with functions/structures to invoke them. For example, in PHP, we have Perl compatible and enhanced regex functions. I think those can be shown along with an overview of what are the differences (like ereg don't need slashes and so on...)
 
Husain
--

Dan Quayle  - "For NASA, space is still a high priority."

CharlyW

unread,
Aug 5, 2008, 7:24:15 PM8/5/08
to Added Bytes Cheat Sheets
Yes, great idea. If you have the time, you could add Vim Regex Syntax
to the sheet - it's very complicated (maybe already to specific, just
an idea...)
Reply all
Reply to author
Forward
0 new messages