Posted By

mikegreen on 07/05/08


Tagged

regex javascript ruby comment


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

webstic


Match Single-line Javascript Comments


 / Published in: Ruby
 

Matches single line Javascript (and PHP, etc.) comments

  1. Regexp.new(/\/\/.*$/)

Report this snippet  

You need to login to post a comment.