in reply to Re: Probably silly regex question / not so silly regex question
in thread Probably silly regex question / not so silly regex question

.*? means match the smallest number -- a non-greedy match. Whereas .* means match the largest number -- a greedy match. Changing the * to a + only changes the minimum match amount (0 to 1). As a side note you can say .{0,} as the equivalent to * and {1,} as + (and, for example, .{3,5} would match 3 to 5 characters).

Gnight,
Gryn

  • Comment on RE: Re: Probably silly regex question / not so silly regex question