I pointed out where the perl documentation shows that ^ assumes, without the /m flag, that there is only one line as an optimisation, which runs contrary to there being "]n]o assumption ]...] made".
I have no idea what that optimisation is, but how the regex engine optimises is well outside the topic of this thread. Any assumption it made affects performance, not result, so I don't know why you think I made an assumption.
In reply to Re^6: What it mathches`
by ikegami
in thread What it mathches`
by abubacker
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |