in Perl regex... what is the behaviour of an asterisk with no preceding token????
Its an error
$ perl -le " /*/" Quantifier follows nothing in regex; marked by <-- HERE in m/* <-- HER +E / at -e line 1.
also matches!!!!!!!!! WHY????
I don't think it does that.
You should post real code with real output from that code that shows * matching something and not generating an error.
In reply to Re: Regex: Asterisk with NO preceding token
by beech
in thread Regex: Asterisk with NO preceding token
by pedrete
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |