It doesn't set $1 to the foo when matching against #foo bli bla, despite an example stating it should.
It doesn't set $1 to the empty string when matching against bli bla, despite an example stating it should.
It doesn't set $1 to foo when matching against bli #foo bla.
For the last two, it doesn't match and leaves $1 unchanged.
Update: After the update to the parent, the following holds:
It doesn't set $1 to the foo when matching against #foo bli bla, despite an example stating it should.
It doesn't set $1 to the empty string when matching against bli bla. However, it does set it to undef, which might be close enough.
It doesn't set $1 to foo when matching against bli #foo bla. It sets $1 to undef instead.
In reply to Re^2: Simple Regex drives me insane
by ikegami
in thread Simple Regex drives me insane
by cheerydog
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |