Welcome To Snipplr


Everyone's Recent Regular Expression Snippets Tagged javascript



« Prev 1 Next »
  1. FAV

    RegExp to find JS & Angular non-comment logs

    Regular Expression to find native Javascript console and AngularJS $log log warn or info that are NOT comments / commented out
    Regular Expression saved by 5 people 9 views posted 4 years ago by brandonjp
  2. FAV

    YouTube URL matcher, video ID catcher

    PCRE that matches any kind of YouTube URL and catches its video ID. It supports three kinds of URL: the classic (?v=), the AJAXed one (#!v=) and the short version (youtu.be). It also supports international URLs. Tested with Javascript and PHP.
    Regular Expression saved by 5 people 5 views posted 9 years ago by nkm
  3. FAV

    Regex for "tel" URIs

    Regular Expression saved by 3 people 4 views posted 11 years ago by wizard04
  4. FAV

    Regular Expressions for U.S. Phone Numbers

    (Created for JavaScript) These are rather forgiving. Spaces, dashes, or periods are allowed as separators. Extensions can be recognized by several strings (#, x, x., ext, ext., extension). Area code: $1$2 Exchange code: $3 Station code: $...
    Regular Expression saved by 3 people 4 views posted 11 years ago by wizard04
  5. FAV

    Match CSS and JS Comments

    Matches CSS-style comments spanning one or multiple lines
    Regular Expression saved by 8 people 7 views posted 11 years ago by mikegreen
  6. FAV

    Regular Expressions For URI Validation/Parsing

    (Supported by JavaScript, maybe other languages)
    Regular Expression saved by 15 people 15 views posted 11 years ago by wizard04
« Prev 1 Next »