Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wibeasley/class-regex-2015
material for our regex class
https://github.com/wibeasley/class-regex-2015
Last synced: 30 days ago
JSON representation
material for our regex class
- Host: GitHub
- URL: https://github.com/wibeasley/class-regex-2015
- Owner: wibeasley
- License: mit
- Created: 2015-12-03T04:05:02.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-03-28T20:26:52.000Z (almost 9 years ago)
- Last Synced: 2024-12-18T01:21:35.937Z (about 1 month ago)
- Language: R
- Size: 219 KB
- Stars: 1
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# regex-class-2015
material for our regex class## Useful resources
- [Regular Expressions Cookbook, 2nd Edition](http://shop.oreilly.com/product/0636920023630.do) (O'Reilly, 2012) by Jan Goyvaerts, Steven Levithan (Our class's primary text)
- Lectures by [Software Carpentry](http://swcarpentry.github.io/v4/regexp/index.html). Great breaking into regexes, with plenty of examples.
- https://regex101.com/#pcre. Notice it uses PCRE (which is the same regex engine that R uses), and the substitution syntax is pretty close to R’s. (Remember that R needs an extra ’\’ to escape the regex’s ‘\’. But this tool doesn’t.)Make sure you add a ‘g’ in the options box. This won’t exactly correspond to each line being its own separate element in R, but it’s close. However now these four characters/expressions behave differently: `^`, `$`, `\A`, and `\Z`.
Also notice that the ‘Explanation’ and ‘Match Information’ windows give great diagnostic information as you’re building it.