[Raw Msg Headers][Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Regex in sift statements
> The following regex behaves in a way that reveals my ignorance of
> regexes.
> (.*)::([A-Z]*)
>
> This will match on CAN:: and CANEDM::Q but fails for CANEDM::QQ
>
> I thought that * matched 0 or more occurences of the previous pattern
> This appears to match 0 or 1 but not more. This is the behaviour I'd
> have expected from [A-Z]?
This problem sounds familiar -- a sleepless night is about to
commence..
> => Sherwood Botsford sherwood@space.ualberta.ca <=
> => University of Alberta Lab Manager, Space Physics Group <=
> => tel:403 492-3713 fax: 403 492-4256 <=
/Matti Aarnio <mea@nic.funet.fi>