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 email javascript regex validation saved by 16 people
    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 convert phone regex
    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 date javascript regex validation
    posted 8 years ago by pumpkinthehead
  4. FAV Remove blank lines

    JavaScript line regex regexp
    posted 8 years ago by devnull69
  5. FAV Javascript RegEx Repetition Limiting

    {min,max}
    JavaScript javascript regex regexp
    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 javascript regex url
    posted 9 years ago by naren1012
  7. FAV Python like string formatting in javascript

    JavaScript format javascript python regex
    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 javascript js number regex
    posted 9 years ago by stryju
  9. FAV Regex Selector for jQuery

    check the original blogpost for more how-to examples
    JavaScript filter jquery regex
    posted 9 years ago by magicrebirth
  10. FAV parseUri 1.2: Split URLs in JavaScript

    JavaScript javascript regex
    posted 9 years ago by johnloy
  11. FAV REGEX to select Hebrew Unicode characters

    JavaScript javascript regex
    posted 9 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 email javascript jquery regex saved by 4 people
    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 regex url saved by 34 people
    posted 10 years ago by the_coder
  14. FAV Regular Expression Wrap

    JavaScript regex
    posted 10 years ago by funkadelicsoul
  15. FAV Convert Text URLs into Links

    JavaScript javascript regex
    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 javascript regex saved by 4 people
    posted 11 years ago by kouphax
  17. FAV Get URL Parameters

    JavaScript regex url saved by 2 people
    posted 11 years ago by Bonky
  18. FAV Check if a url contains a subdomain

    JavaScript regex url saved by 2 people
    posted 11 years ago by scriptmakingcom
  19. FAV JavaScript - is_valid_email

    JavaScript email javascript js regex textmate validation
    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 javascript regex url
    posted 12 years ago by iTony
  21. FAV Javascript search and replace

    Why doesn't this work?
    JavaScript javascript regex replace saved by 3 people
    posted 12 years ago by gaunab
  22. FAV Javascript - Eliminar tags A en pagina de impresión

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