Differences between version 10 and predecessor to the previous major change of RegularExpression.
Other diffs: Previous Revision, Previous Author, or view the Annotated Edit History
Newer page: | version 10 | Last edited on Thursday, July 6, 2006 4:14:00 pm | by PerryLorier | Revert |
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
+|^__Charactor__|^__Matches__
+| . | Any single charactor
+| ^ | Beginning of line
+| $ | End of line
+| \''any charactor'' | Match ''any charactor'' exactly (even if it's a special charactor)
+| [[''charactor group''] | Any single charactor in the group
+
+Things that alter the previous expression
+
+|^__Charactor__|^__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: