Giter Club home page Giter Club logo

tryregex's Introduction

Try Regex

Try Regex is an interactive regular expressions tutorial inspired by Try Ruby and Try Haskell. Check it out at http://tryregex.com/.

This project was conceived at the HackKing's Hackathon in London.

Installing

Try Regex uses gulp for building and other development tools, and bower for package management. To install, run the following:

npm install
bower install

You will need Node (>= 0.9), npm and bower to be installed.

Running

It's static HTML, you don't need anything special to serve the files. However, gulp adds a number of tools which make it easier during development. You can run gulp build to turn the LESS code into CSS, you can use gulp lint to lint your code, and you can use gulp to run browser-sync and a LESS watcher to compile and inject changes as they're made.

License

Try Regex is released under the MIT license.

tryregex's People

Contributors

brandly avatar callumacrae avatar djgrant avatar markbrown4 avatar neilhanlon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

tryregex's Issues

Error in "Limited repetition" I believe

First off, really enjoy your site. Best way to learn regexs is to write them.

I got to this part of the tutorial.

Limited repetition

There is one final quantifier that you can use which allows you to limit repetition. The syntax is {min,max} which min is the minimum number of repetitions and max the maximum. For example, /a{3,5}/ would match "aaa", "aaaa" and "aaaaa", but nothing else.

Write an expression to match the text between an opening and closing bracket in the shorterStory variable—but only if the contents are between 5 and 8 characters long.

I responded with shortStory.match(/\(.{5,8}\)/) I am pretty sure this is the right response, but the tutorial did not proceed. Wanted to let you know in case it was an issue.

Display issues on a lengthy console

As seen in the image below, when the ul grows too much, the containing .console grows a bit with it (but not by the same amount). I'm assuming this is something to do with flexbox, but I have no idea how to fix it.

Reference to brackets should be parentheses

Lesson 9 says "extracts everything between the opening bracket and the closing bracket". Your string is: "A regular expression (also regex or regexp) is a string."

Brackets in this instance (and possibly other lessons) should be parentheses.

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.