Welcome To Snipplr


Everyone's Recent Regular Expression Snippets



« Prev 1 2 3
  1. FAV

    Regular Expression - E-mail validation

    RFC 5322 compliant regex
    Regular Expression saved by 4 people 16 views posted 1 year ago by cyrilfr
  2. FAV

    GetIP & GetIPPort Regex

    * Usefull as shell command and everyting else `get-ip='egrep -o "[0-9]{1,4}\.[0-9]{1,4}\.[0-9]{1,4}\.[0-9]{1,4}"'` `get-ipport='egrep -o "[0-9]{1,4}\.[0-9]{1,4}\.[0-9]{1,4}\.[0-9]{1,4}[0-9 :]+" | sed -e "s/ //g"'`
    Regular Expression 10 views posted 3 years ago by dbiesecke
  3. FAV

    regex_identityiq_remove-element-created

    Regular Expression 7 views posted 4 years ago by jstrange
  4. FAV

    regex_identityiq_remove-element-id

    Regular Expression 9 views posted 4 years ago by jstrange
  5. 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 25 people 16 views posted 4 years ago by brandonjp
  6. FAV

    sqlSquirrel gerated date

    Regular Expression 5 views posted 6 years ago by juanalvarez9
  7. FAV

    Regex Leading and Trailing Whitespace

    Leading and Trailing Whitespace
    Regular Expression 38 views posted 6 years ago by Pavonz
  8. FAV

    Remove Non Errors from Logs

    Removes any lines from the file that don't start with "ERROR"
    Regular Expression saved by 1 person 7 views posted 6 years ago by gamerzfuse
  9. FAV

    Remove comments in code

    It removes all standard C-style comments(/* 1-n */) and all single line comments("//"). Greedy matching.
    Regular Expression 19 views posted 7 years ago by XtreamIT
  10. 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 16 people 28 views posted 7 years ago by brandonjp
  11. FAV

    Hexadecimal color regex match

    Regex code to match hexadecimal colors
    Regular Expression 14 views posted 7 years ago by guilhermehn
  12. FAV

    regex to refactor elseif block to select case format

    Requirement from work was to refactor an 8000 line if elseif code block to select case syntax. Not a manual task, even for a 1984 olympics button bashing champ. note, id is the test variable here, as in elseif (id ="test") then ...
    Regular Expression 9 views posted 7 years ago by pflangan
  13. FAV

    Match all non-printing characters (excluding EOL chars)

    This regex captures non-printing characters (specifically those found when copying text from Photoshop). It's not fully tested, but it worked for me when I needed it. I will add to it as necessary.
    Regular Expression 12 views posted 8 years ago by oobleck
  14. FAV

    Remove Blank Lines in VI/VIM

    Here is a common Regex I use to remove all blank lines in a file using VIM
    Regular Expression 10 views posted 8 years ago by jasonpottergmailcom
  15. FAV

    Regex for HTML Tag Replacements

    Regular Expression 16 views posted 8 years ago by beneberle
  16. FAV

    Joomla 301 redirect for all pages

    Regular Expression 13 views posted 8 years ago by kristapslazda
  17. FAV

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

    Regular Expression 12 views posted 8 years ago by abstraktor
  18. FAV

    Strip Code Line Spaces

    Regular Expression 7 views posted 8 years ago by mantosz
  19. FAV

    Segment keywords by number of words in GA

    Regular Expression 10 views posted 8 years ago by cristinachetroi
  20. FAV

    Comprehensive date validation regex pattern

    Ridiculously comprehensive date validation regex - matches dd/mm/yyyy or dd/mm/yy. Also correctly matches number of days in months. ie. it won't match 30th Feb...
    Regular Expression 17 views posted 8 years ago by shodan_uk
  21. FAV

    Match text between asterisks

    Matches text between each pair of asterisks (see URL above for demo) **Example:** Make text between asterisks bold, like in Textile (in Ruby): `test.gsub(/(\*)+([^.*?$]+)+(\*)/, '<strong>\\2</strong>')`
    Regular Expression 13 views posted 9 years ago by inko9nito
  22. FAV

    Regex - Match IPv6 address

    Regular Expression saved by 18 people 19 views posted 9 years ago by dmertl
  23. FAV

    Regex - Match IPv4 address

    Regular Expression saved by 18 people 13 views posted 9 years ago by dmertl
  24. FAV

    RegEx match whole sentence.

    I\'m trying to find an expression to match a whole sentence. So really the pattern is the regex of the subject.
    Regular Expression saved by 1 person 12 views posted 9 years ago by thefrosty
  25. FAV

    Find & replace regex multi-line for Textmate

    As an example – will find and replace all `<b>` elements with `<strong>`
    Regular Expression 13 views posted 9 years ago by jayphen
  26. FAV

    Number Match in Larger Context

    Regular Expression saved by 2 people 7 views posted 9 years ago by joelhaus
  27. FAV

    Remove html tag attributes with Regex find and replace in Dreamweaver

    Use this regex search in Dreamweaver's find/replace to remove any html tag attributes
    Regular Expression saved by 1 person 26 views posted 9 years ago by bjornredemption
  28. FAV

    regex url parser

    Regular Expression saved by 1 person 13 views posted 9 years ago by darronz
  29. FAV

    RegEx Regular Expression to match < > java doc tags in JSP (liferay)

    Regular Expression 12 views posted 9 years ago by brandonjp
  30. FAV

    Deny / Exclude SVN folder access on servers using ISAPI Rewrite or Equivalent.

    Regular Expression saved by 4 people 7 views posted 9 years ago by supermauerbros
« Prev 1 2 3