Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Regex to strip comments

by kcott (Archbishop)
on Oct 01, 2012 at 00:39 UTC ( [id://996562]=note: print w/replies, xml ) Need Help??


in reply to Regex to strip comments

"This has probably been asked and answered a thousand times over already, but I have not found a working solution."

There are tools available to do this. They're called search engines!

I searched for: Perl regex to strip C comments. The first result provided the answer. Try this yourself - the practice will do you good.

-- Ken

Replies are listed 'Best First'.
Re^2: Regex to strip comments
by zuma53 (Beadle) on Oct 01, 2012 at 02:20 UTC

    Thanks for the suggestion.

    The code is SQL and I am not a C programmer, so I was unaware they are similar.

      Removing C from the search, i.e. Perl regex to strip comments, I still get the same answer as the first result.

      Even removing Perl from the search and using your node title verbatim, i.e. Regex to strip comments, the third result gives the same answer.

      -- Ken

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://996562]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (6)
As of 2024-03-29 01:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found