Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
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 |