trivial regex question (answer most likely depends on Java):
"
This returns false. As far as I see, ^ means that it always means, and # does not really matter, so I translated ^# as "A" at the beginning of the line. "Which should match. And so it goes, in Perl:
perl -e "print '#This is a comment'=~/^#/;"
prints "1". So I'm sure the answer is something specific to Java. Will someone please enlighten me?
Thanks.
java regex
0xCAFEBABE
source share