I need to extract some information from source code.

How can I write a perl regular _expression_ that will match a literal string in languages like C#, _javascript_, java and lisp?

Here is my naive approach:

/"[^"]*"/

This of course does not accommodate backslashes in the string that perl, C, C# _javascript_ use.

"\"sdfds\"\\r\\t\\m".

How can I write a regular _expression_ in perl to look for a double quoted literal string in these languages?

Thanks
Siegfried
-- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Reply via email to