#1042 Regular expressions are limited to 10 groups

None
closed-rejected
nobody
v1.24.1
5
2014-04-30
2014-04-29
jcsl
No

Hi.

Geany is limited to 9 groups in regular expressions. If you try to use a group after the 10th, it is replaced with the first group and the second digit of the group number. For example, if the group 1 is "first" and the 10 group is "tenth", \10 is replaced as "first0".

Greetings.

Discussion

  • Lex Trotman

    Lex Trotman - 2014-04-30
    • status: open --> closed-rejected
     
  • Lex Trotman

    Lex Trotman - 2014-04-30

    The POSIX regular expression language specifies only a single digit for the backreference number so the limit for numbered backreferences is nine. Use named backreferences instead, see https://developer.gnome.org/glib/stable/glib-regex-syntax.html "named subpatterns"

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks