Jump to content

Parsing out comments in a script.


DarkWater

Recommended Posts

I'm kinda bored, so I'm just playing around with some regexes in Perl (among other things for serious reasons), and I was trying to think of a way to parse comments out of a script.  Just # comments for now, since I can easily adapt it to the // comments.  Anyway, I couldn't think of a good way to make sure that they weren't in quotes since you lookbehind assertions need to be fixed width.  Any ideas?

Link to comment
https://forums.phpfreaks.com/topic/126172-parsing-out-comments-in-a-script/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.