I forgot to mention a little "big" detail! In order to this code works we need to read the file using undef $/!!
Example:
undef $/; open(F,"$file") || die "$!"; my @comentarios=grep defined, <F> =~ m{ ( /\* .*? \*/) | ( \/\/[^\n]*) | " (?: [^"\\]* | \\. )* " | ' (?: [^'\\]* | \\. )* ' | . [^/"']* }xgs; close(F);
Thank you all once again!!
In reply to Re: Re: Re: Regex "(un)Knowledge"
by nofernandes
in thread Regex "(un)Knowledge"
by nofernandes
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |