Welcome To Snipplr


Everyone's Recent Snippets Tagged regexp



« Prev 1 2 3
  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 7 views posted 4 years ago by brandonjp
  2. FAV

    Search nested html elements

    Match nested html elements using regular expressions. Replace the first part of the magic "[a-z]+" to search for a specific tag, e.g. "div". Loop the magic on matched parts to create a recursive match.
    PHP saved by 1 person 4 views posted 5 years ago by pvq
  3. FAV

    HTML5 email regexp validate

    HTML 9 views posted 6 years ago by MistaTwista
  4. FAV

    Save all images from RSS feed

    Gets "src" attributes from all "img" tags in RSS entries descriptions
    Groovy 4 views posted 6 years ago by alces
  5. FAV

    Groovy way to replace regexp matches

    Example of working with regexp sub-matches via Groovy way
    Groovy 6 views posted 6 years ago by alces
  6. FAV

    CBC World News RSS parser

    Reads CBC news RSS with fancy-prints its in table, splitting news description by image & text.
    Groovy 3 views posted 6 years ago by alces
  7. FAV

    Regular Expression for Matching URLs with or without http(s)

    thanks to... http://gskinner.com/RegExr/ http://daringfireball.net/2010/07/improved_regex_for_matching_urls
    Regular Expression saved by 4 people 13 views posted 7 years ago by brandonjp
  8. FAV

    Loop through $_REQUEST matching a parameter starting xxxxxx.....

    PHP 1 views posted 8 years ago by flatearthcomms
  9. FAV

    RegExp for search-replaceing css-urls from url(asdf.bc) to url('images/asdf.bc')

    Regular Expression saved by 2 people 3 views posted 8 years ago by abstraktor
  10. FAV

    Remove blank lines

    JavaScript 4 views posted 8 years ago by devnull69
  11. FAV

    Find string in MYSQL

    MySQL 4 views posted 8 years ago by apro2000
  12. FAV

    AS3 Remove namespace from XML

    If you don't deal with namespaces in XML correctly they can break your parsing in AS3. One way of getting around this is to remove the namespace from the XML a using regular expression.
    ActionScript 3 4 views posted 8 years ago by adrianparr
  13. FAV

    Delete files in a directory tree matching a regex

    Windows PowerShell saved by 2 people 6 views posted 8 years ago by jarnaldich
  14. FAV

    Javascript RegEx Repetition Limiting

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

    Convert links to hyperlinks in JS

    JavaScript 2 views posted 8 years ago by level09
  16. FAV

    Remove content in brackets

    PHP 1 views posted 8 years ago by burnleywallet
  17. FAV

    Ruby Regexp example for filter files

    Ruby 4 views posted 8 years ago by almazom
  18. FAV

    Extract domain name with RegExp

    ActionScript 3 5 views posted 8 years ago by hejaaa
  19. FAV

    Email Address (RFC 2822)

    Other 1 views posted 9 years ago by Mazzaroth
  20. FAV

    Twitter links parser

    ActionScript 3 views posted 9 years ago by kuril
  21. FAV

    Template system (replace items in a string with items from a hash)

    This simple construct allows you to replace parts of a string with items in a hash table (e.g. and Object). Example: var replacements : Object = { SPEED : "slow", ADJECTIVE : "green", VERB: "slithers" }; var template: String = "The %{SPEED}...
    ActionScript 3 3 views posted 9 years ago by mgeduld
  22. FAV

    Strip whitespace at the beginning and the end of a string

    This can be useful when you retrieve strings from an XML or script that have whitespaces at the beginning or the end.
    ActionScript 3 4 views posted 9 years ago by gandreini
  23. FAV

    Validate Calendar Date with RegExp

    From the tutorial, Validating Various Input Data in Flash (http://active.tutsplus.com/tutorials/actionscript/validating-various-input-data-in-flash/)
    ActionScript 3 saved by 3 people 3 views posted 9 years ago by Activetuts
  24. FAV

    Validate Card Number with RegExp

    From the tutorial, Validating Various Input Data in Flash (http://active.tutsplus.com/tutorials/actionscript/validating-various-input-data-in-flash/)
    ActionScript 3 saved by 2 people 5 views posted 9 years ago by Activetuts
  25. FAV

    Validate IBAN with RegExp

    From the tutorial, Validating Various Input Data in Flash (http://active.tutsplus.com/tutorials/actionscript/validating-various-input-data-in-flash/)
    ActionScript 3 6 views posted 9 years ago by Activetuts
  26. FAV

    Validate ISBN with RegExp

    From the tutorial, Validating Various Input Data in Flash (http://active.tutsplus.com/tutorials/actionscript/validating-various-input-data-in-flash/)
    ActionScript 3 saved by 2 people 1 views posted 9 years ago by Activetuts
  27. FAV

    Validate a Phone Number with RegExp

    From the tutorial, Validating Various Input Data in Flash (http://active.tutsplus.com/tutorials/actionscript/validating-various-input-data-in-flash/)
    ActionScript 3 saved by 4 people 4 views posted 9 years ago by Activetuts
  28. FAV

    Validate a Web Address with RegExp

    From the tutorial, Validating Various Input Data in Flash (http://active.tutsplus.com/tutorials/actionscript/validating-various-input-data-in-flash/)
    ActionScript 3 saved by 8 people 2 views posted 9 years ago by Activetuts
  29. FAV

    Validate Email Address with RegExp

    From the tutorial, Validating Various Input Data in Flash (http://active.tutsplus.com/tutorials/actionscript/validating-various-input-data-in-flash/)
    ActionScript 3 saved by 3 people 3 views posted 9 years ago by Activetuts
  30. FAV

    AS3 Replace Special XML Characters with Entity Names (Partial Set)

    These five characters should be replaced with their HTML entity names before being used in XML, otherwise they may cause the XML to be invalid.
    ActionScript 3 0 views posted 9 years ago by adrianparr
« Prev 1 2 3