Welcome To Snipplr


Everyone's Recent JavaScript Snippets Tagged regex



« Prev 1 Next »
  1. FAV

    email validation

    Use a regex to check the email address input
    JavaScript saved by 16 people 80 views posted 6 years ago by dreamstarter
  2. FAV

    10 Digit String to Phone Format

    Formats a 10-digit phone number into a good format (123) 555-1234
    JavaScript 14 views posted 7 years ago by cpres
  3. FAV

    Flexible JavaScript Date Validation w/ Regex

    Find the date with or without a year and with double or single digit month or day. Easily extendable to other date delimiters and formats.
    JavaScript 6 views posted 8 years ago by pumpkinthehead
  4. FAV

    Remove blank lines

    JavaScript 7 views posted 8 years ago by devnull69
  5. FAV

    Javascript RegEx Repetition Limiting

    {min,max}
    JavaScript 2 views posted 8 years ago by simondiercks
  6. FAV

    Modified URL Matcher Regex

    Modified regex of URL Matcher found on http://daringfireball.net/2010/07/improved_regex_for_matching_urls
    JavaScript 2 views posted 9 years ago by naren1012
  7. FAV

    Python like string formatting in javascript

    JavaScript 2 views posted 9 years ago by metoikos
  8. FAV

    get 1st float ( or int ) from given string

    it parses given string and returns 1st number it encounters ( it will replace comas with dots so floats formatted as 12,345 could be 12.345 ( some countries use that ) ) then u can parse returned value as a number / float / int - do what You need...
    JavaScript 1 views posted 9 years ago by stryju
  9. FAV

    Regex Selector for jQuery

    check the original blogpost for more how-to examples
    JavaScript 4 views posted 9 years ago by magicrebirth
  10. FAV

    parseUri 1.2: Split URLs in JavaScript

    JavaScript 2 views posted 9 years ago by johnloy
  11. FAV

    REGEX to select Hebrew Unicode characters

    JavaScript 0 views posted 10 years ago by desmond54
  12. FAV

    Extract email from bulk text (with Regular Expressions, JavaScript & jQuery)

    Easily grabs email addresses from a bulk text (CSV and/or some other email address-filled list/db). Example #2 takes the input (bulk text) from textarea #input and puts the clean emails in the textarea #extractedemails.
    JavaScript saved by 4 people 7 views posted 10 years ago by world_eggplant
  13. FAV

    Get Url Parameters

    Read a page's GET URL variables and return them as an "associative array." Calling the function while at `example.html?foo=asdf&bar=jkls` sets `map['foo']='asdf'` and `map['bar']='jkls'`
    JavaScript saved by 34 people 33 views posted 10 years ago by the_coder
  14. FAV

    Regular Expression Wrap

    JavaScript 0 views posted 10 years ago by funkadelicsoul
  15. FAV

    Convert Text URLs into Links

    JavaScript 1 views posted 10 years ago by troynt
  16. FAV

    Escape Regular Expression Characters in String

    Escape all special regex characters (.*+?|()[]{}\) from a string. Useful when dynamically building a Regular Expression object based on input text that could hold regex characters.
    JavaScript saved by 4 people 3 views posted 11 years ago by kouphax
  17. FAV

    Get URL Parameters

    JavaScript saved by 2 people 2 views posted 11 years ago by Bonky
  18. FAV

    Check if a url contains a subdomain

    JavaScript saved by 2 people 6 views posted 11 years ago by scriptmakingcom
  19. FAV

    JavaScript - is_valid_email

    JavaScript 2 views posted 11 years ago by wbowers
  20. FAV

    retrieve values from a url

    This makes it easy to retrieve certain value from a url with different values appended to it.
    JavaScript 2 views posted 12 years ago by iTony
  21. FAV

    Javascript search and replace

    Why doesn't this work?
    JavaScript saved by 3 people 3 views posted 12 years ago by gaunab
  22. FAV

    Javascript - Eliminar tags A en pagina de impresión

    JavaScript saved by 1 person 1 views posted 12 years ago by nicolaspar
« Prev 1 Next »