×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Text
Posted by: Mike Rourke
Added: Nov 6, 2017 3:19 PM
Views: 2577
Tags: regex webstorm
  1. Find all lines with comments that start with //:
  2. ([/]{2}[^\n][^www]|[/]{2}).*
  3.  
  4. Find all empty lines:
  5. ^\n\n*
  6.  
  7. Convert stringified JSON to JavaScript Object:
  8. Find:
  9.   "(.*)":
  10.  
  11. Replace:
  12.   $1: