Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 8th, 2012  |  syntax: None  |  size: 0.31 KB  |  hits: 10  |  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. jQuery placeholders substitution
  2. [$[SKU001]$]
  3. [$[SKU002]$]
  4.        
  5. <img src="SKU001.jpg">
  6. <img src="SKU002.jpg">
  7.        
  8. var pattern = /[$[(.*?)]$]/;
  9. var t = $('body').filter(function() {
  10.     return this.??.match(pattern);
  11. });
  12.  
  13. console.log(t);
  14.        
  15. var matches = $('body').text().match(/[$[(.*?)]$]/)
  16. console.log(matches);