GithubHelp home page GithubHelp logo

ninjasort / regexkoans Goto Github PK

View Code? Open in Web Editor NEW

This project forked from frenchroasted/regexkoans

0.0 1.0 0.0 167 KB

Regular Expressions tutorial in the style of Ruby Koans, written with Javascript and Jasmine

HTML 6.39% JavaScript 92.01% CSS 1.60%

regexkoans's Introduction

Regular Expression Koans

A series of tutorials on Regular Expressions.

Learn how to write, read, and use Regular Expressions by completing or correcting code to make failing Unit Tests pass. Each Koan includes a series of Unit Tests which illustrate Regular Expression principles and techniques. I have made an effort to avoid making forward references in the tutorial sequence, but there are enough back references to earlier Koans that it would be best to complete the Koans in the order presented.

Javascript's Regular Expression engine is very similar to that of many other programming languages. It differs only in esoteric details and in that it does not support Lookbehind Assertions, which are consequently not covered in this tutorial. For an excellent summary of Javascript's Regex capabilities as well as those of many other languages, Jan Goyvaerts is your first and last resource.

To practice, to try out some code before using it in your program, or just to play around, rubular.com is a fantastic Regular Expression resource. It uses Ruby's Regex engine, but the differences are minor. This web tool should be in the Bookmarks list of every programmer.

With many thanks to:

Installation

Checkout or download the zipped version of this project and extract it to a folder.

Usage

  • Open "index.html" in a web browser and "spec/01_Basics.js" in an editor.
  • Click on "Basics" in the web page test summary to see progress details.
  • Edit the .js file, save, and reload the web page.
  • Repeat until all the tests are passing.

regexkoans's People

Contributors

frenchroasted avatar mbuda avatar

Watchers

Cameron avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.