Message179121
I have tried hard, but have utterly failed to figure out why you have chosen the semantics for ^ you mention, tried to come up with a plausible use case, and I have utterly failed.
I find it distinctly counter intuitive.
I think the Principle of Least Astonishment compliant definition of ^ and $ would be that they match the start and end of the string offered for matching, ie: taking start+end into account.
The real use-case behind this is searching through a mmap'ed database file, for a particular regexp in a particular field of the records, with the minimum amount of copying.
The semantics you mention, makes ^ and $ useless in this, and as far as I can tell, any other scenario involving start+end arguments. |
|
Date |
User |
Action |
Args |
2013-01-05 12:58:45 | bsdphk | set | recipients:
+ bsdphk, ned.deily, ezio.melotti, mrabarnett |
2013-01-05 12:58:44 | bsdphk | set | messageid: <1357390725.0.0.359925639478.issue16870@psf.upfronthosting.co.za> |
2013-01-05 12:58:44 | bsdphk | link | issue16870 messages |
2013-01-05 12:58:44 | bsdphk | create | |
|