mingodad
|
1e5275be20
Added a new pattern like the lua "%bxy" but here it is "\mxy" where x and y are two distinct characters; such item matches strings that start with x, end with y, and where the x and y are balanced. This means that, if one reads the string from left to right, counting +1 for an x and -1 for a y, the ending y is the first y where the count reaches 0. For instance, the item \m() matches expressions with balanced parentheses.
|
13 years ago |