Differences between current version and predecessor to the previous major change of RegularExpression.
Other diffs: Previous Revision, Previous Author, or view the Annotated Edit History
Newer page: | version 11 | Last edited on Thursday, July 6, 2006 10:47:58 pm | by AlastairPorter | |
Older page: | version 9 | Last edited on Wednesday, July 27, 2005 7:13:42 pm | by MattBrown | Revert |
@@ -7,8 +7,24 @@
bbcde
but not:
axbcde
+
+Quick cheatsheet
+|^__Character__|^__Matches__
+| . | Any single character
+| ^ | Beginning of line
+| $ | End of line
+| \''any character'' | Match ''any character'' exactly (even if it's a special character)
+| [[''character group''] | Any single character in the group
+
+Things that alter the previous expression
+
+|^__Character__|^__Alteration__
+| ? | Match the previous expression exactly zero or one times
+| * | Match the previous expression zero or more times
+| + | Match the previous expression one or more times
+
regex(7) explains all the neat things you can do with [RegularExpression]s and the different types. perlre(1) explains perl's extended regex's.
-----
grep(1) is a command to look for a regex in a file. eg: