Regular Expression (RegExpr) does not suppot non capturing group and lookahead
Original Reporter info from Mantis: luizamerico
-
Reporter name: Luiz Americo
Original Reporter info from Mantis: luizamerico
- Reporter name: Luiz Americo
Description:
Trying to use the below expressions gives an error: 'unrecognized modifier'
Expr := TRegExpr.Create;
//Expr.Expression := '(?:ha)+'; // non capturing group
//Expr.Expression := '\d(?=px)'; //positive lookahead
Expr.Expression := '\d(?!px)'; //negative lookahead
Expr.Compile;
These features are supported in Javascript, PHP and Python
See https://msdn.microsoft.com/en-us/library/az24scfc%28v=vs.110%29.aspx#grouping_constructs
tested in https://regex101.com/
Mantis conversion info:
- Mantis ID: 29756