3 ms·
Show HN: JavaScript regexp eBook with hundreds of examples and exercises
Hello.
I updated my ebook on JavaScript regular expressions [1] today - updates include corrections, additional content, exercises, solutions, etc
All my ebooks [2] are currently free to help with quarantine reading. These include GNU grep & ripgrep, GNU sed, GNU awk and three books on regular expressions - Python, Ruby, JavaScript
I'd appreciate your feedback and hope the books are useful. Happy learning :)
[1] https://github.com/learnbyexample/learn_js_regexp
[2] https://learnbyexample.github.io/books/
- Normille 6y agoWhile on the subject of RegEx, I'll just recommend this website. It's great for practicing RegEx and interactively seeing what changes to your expression are doing and why: https://regex101.com/ https://regex101.com/
- asicsp 6y agoYep, that website is a good way to interactively solve/learn. The site also includes quiz, cheatsheets, etc. I mention it in an interlude chapter, along with regexr[1], regulex [2], debuggex[3] and regexcrossword [4] [1] https://regexr.com/ https://regexr.com/ [2] https://jex.im/regulex/ https://jex.im/regulex/ [3] https://www.debuggex.com/ https://www.debuggex.com/ [4] https://regexcrossword.com/ https://regexcrossword.com/
- lioeters 6y agoThank you for sharing your work! It looks quite wide-ranging and in depth. For others, clickable links: https://github.com/learnbyexample/learn_js_regexp https://github.com/learnbyexample/learn_js_regexp https://learnbyexample.github.io/books/ https://learnbyexample.github.io/books/ --- I love that you provide the books in a single-file Markdown format. JavaScript Regular Expressions - https://github.com/learnbyexample/learn_js_regexp/blob/master/js_regexp.md https://github.com/learnbyexample/learn_js_regexp/blob/maste... Python Regular Expressions - https://github.com/learnbyexample/py_regular_expressions/blob/master/py_regex.md https://github.com/learnbyexample/py_regular_expressions/blo...
- asicsp 6y agoThanks for posting clickable links and feedback about the markdown sources. I use pandoc to convert markdown to pdf/epub and my initial learning with pandoc [1] resulted in single file usage. So, I kept it like that. I'm planning to create a separate chapter-wise branch so that I can publish a nicer web version with tools like mdBook [2]. This will require a bit of scripting to handle references across chapters. [1] https://learnbyexample.github.io/tutorial/ebook-generation/customizing-pandoc/ https://learnbyexample.github.io/tutorial/ebook-generation/c... [2] https://github.com/rust-lang/mdBook https://github.com/rust-lang/mdBook