Simple Strings
The most basic regular expression is a simple string that contains no special characters except the delimiters. A simple string matches only itself (Table A-1). In the examples in this appendix, the strings that are matched look like this.
Regular Expression | Matches | Examples |
---|---|---|
/ring/ | ring | ring, spring, ringing, stringing |
/Thursday/ | Thursday | Thursday , Thursday's |
/or not/ | or not | or not, poor nothing |
Get A Practical Guide to Red Hat® Linux® 8 now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.