fork download
  1. input="text with 'single-quotes'.";
  2.  
  3. pattern = new RegExp('\'.*\'');
  4.  
  5. print(pattern.exec(input));
Success #stdin #stdout 0.02s 10736KB
stdin
Standard input is empty
stdout
'single-quotes'