regex - How do I group regular expressions past the 9th backreference? -


ok trying group past 9th backreference in notepad++. wiki says can use group naming go past 9th reference. however, can't seem syntax right match. starting off 2 groups make simple.

sample data

1000,1000 

regex.

(?'a'[0-9]*),([0-9]*) 

according docs need following.

(?<some name>...), (?'some name'...),(?(some name)...) names group name. 

however, result can't find text. suggestions?

you can reference groups > 9 in same way < 10

i.e $10 tenth group.

for (naive) example:

string:

abcdefghijklmnopqrstuvwxyz

regex find:

(?:a)(b)(c)(d)(e)(f)(g)(h)(i)(j)(k)(l)(m)(n)(o)(p)

replace:

$10

result:

kqrstuvwxyz

my test performed in notepad++ v6.1.2 , gave result expected.


Comments

Popular posts from this blog

django - How can I change user group without delete record -

java - Need to add SOAP security token -

java - EclipseLink JPA Object is not a known entity type -