Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Sep 11th, 2012  |  syntax: None  |  size: 2.26 KB  |  views: 8  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. /^(#([\da-f]{1,2})\2\2|rgb\( *0*([^,]+) *, *0*\3 *, *0*\3 *\)|rgba\( *0*([^,]+) *, *0*\4 *, *0*\4 *,[^,]+\)|hsl\([^,]+, *0% *,[^,]+\)|hsl\([^,]+,[^,]+, *(10)?0% *\)|hsla\([^,]+, *0% *,[^,]+,[^,]+\)|hsla\([^,]+,[^,]+, *(10)?0% *,[^,]+\))$/i
  2.  
  3. /^(#([\da-f]{1,2})\2\2|rgb\( *0*([^,]+) *, *0*\3 *, *0*\3 *\)|rgba\( *0*([^,]+) *, *0*\4 *, *0*\4 *,[^,]+\)|hsla?\([^,]+, *0% *,[^,]+(,[^,]+)?\)|hsla?\([^,]+,[^,]+, *(10)?0% *(,[^,]+)?\))$/i
  4.  
  5. /^(#([\da-f]{1,2})\2\2|rgb\( *0*([^,]+) *, *0*\3 *, *0*\3 *\)|rgba\( *0*([^,]+) *, *0*\4 *, *0*\4 *,[^,]+\)|hsla?\([^,]+,( *0% *,[^,]+|[^,]+, *(10)?0% *)(,[^,]+)?\))$/i
  6.  
  7. /^(#([\da-f]{1,2})\2\2|rgb\( *0*([^,]+) *, *0*\3 *, *0*\3 *\)|rgba\( *0*([^,]+) *, *0*\4 *, *0*\4 *,[^,]+\)|hsla?\([^,]+,( *0% *,[^,]+|[^,]+, *(10)?0% *)(,[^,]+)?\))$/i
  8.  
  9. /^(#([\da-f]+)\2\2|rgb\( *0*([^,]+) *, *0*\3 *, *0*\3 *\)|rgba\( *0*([^,]+) *, *0*\4 *, *0*\4 *,[^,]+\)|hsla?\([^,]+,( *0% *,[^,]+|[^,]+, *(10)?0% *)(,[^,]+)?\))$/i
  10.  
  11. /^(#([\da-f]{1,2})\2\2|rgb\( *0*([^,]+) *, *0*\3 *, *0*\3 *\)|rgba\( *0*([^,]+) *, *\4 *, *\4,[^,]+\)|hsla?\([^,]+,( *0% *|[^,]+, *(10)?0% *).*)$/i
  12.  
  13. /^(#([\da-f]{1,2})\2\2\b|rgb\( *0*([^,]+) *, *0*\3 *, *0*\3\)|rgba\( *0*([^,]+) *, *\4 *, *\4,|hsla?\([^,]+,( *0% *|[^,]+, *(10)?0% *))/i
  14.  
  15. /^(#([\da-f]{1,2})\2\2\b|rgb\( *0*([^,]+) *, *0*\3 *, *0*\3\)|rgba\( *0*([^,]+) *,( *\4 *,)+|hsla?\([^,]+,( *0% *|[^,]+, *(10)?0% *))/i
  16.  
  17. /^(#([\da-f]{1,2})\2\2\b|rgb\( *0*([^,]+) *, *0*\3 *, *0*\3\)|rgba\( *0*([^,]+)( *, *\4)+|hsla?\([^,]+,( *0% *|[^,]+, *(10)?0% *))/i
  18.  
  19. /^(#([\da-f]{1,2})\2\2\b|rgb\( *0*([^,]+)( *, *0*\3){2}\)|rgba\( *0*([^,]+)( *, *\5)+|hsla?\([^,]+,( *0% *|[^,]+, *(10)?0% *))/i
  20.  
  21. /^(#([\da-f]{1,2})\2\2\b|rgb\( *0*([^,]+)([0, ]*\3){2}\)|rgba\( *0*([^,]+)( *, *\5)+|hsla?\([^,]+,( *0% *|[^,]+, *(10)?0% *))/i
  22.  
  23. /^(#([\da-f]{1,2})\2\2\b|rgb\( *0*(.+)([0, ]*\3){2}\)|rgba\( *0*(.+)( *, *\5)+|hsla?\(.+,( *0% *|.+, *(10)?0% *))/i
  24.  
  25. /^(#([\da-f]{1,2})\2\2\b|rgb\( *0*(.+)([0, ]+\3){2}\)|rgba\( *0*(.+)( *, *\5)+|hsla?\(.+,( *0%|.+, *(10)?0%))/i
  26.  
  27. /^(#([\da-f]{1,2})\2\2\b|rgb\((.+)([0, ]+\3){2}\)|rgba\((.+)( *, *\5)+|hsla?\(.+,( *0%|.+, *(10)?0%))/i
  28.  
  29. /^(#([\da-f]{1,2})\2\2\b|rgb\((.+)([0, ]+\3){2}\)|rgba\((.+)( *, *\5)+|hsla?\(.+,(.+,)? *(10)?0%)/i
  30.  
  31. /^(#([\da-f]{1,2})\2\2\b|rgb\((.+)([0, ]+\3){2}\)|rgba\((.+)( *, *\5)+|hsla?\((.+,)+ *(10)?0%)/i
clone this paste RAW Paste Data