Re: [Assp-test] RegEx Backreferences - the basics

2021-11-05 Thread K Post
> > > > > > Von: "K Post" > An:"ASSP development mailing list" < > assp-test@lists.sourceforge.net> > Datum:05.11.2021 00:20 > Betreff:Re: [Assp-test] RegEx Backreferences - the basics > ---

Re: [Assp-test] RegEx Backreferences - the basics

2021-11-05 Thread Thomas Eckardt
not a place to learn perl regular expressions. Thomas Von:"K Post" An: "ASSP development mailing list" Datum: 05.11.2021 00:20 Betreff: Re: [Assp-test] RegEx Backreferences - the basics First of all, to say that the problem is sitting in front of t

Re: [Assp-test] RegEx Backreferences - the basics

2021-11-04 Thread K Post
> example > > $string =~ /($testReRE)/ > $match = $1; > > so - at runtime the regex is > > ((?^u:(?is:(?:^|\n\r).*(searchstring).*@.*\1.*))) > > IMHO you need to use named capture groups or \g or (?| > > Thomas > > > > Von:"Thomas Eckardt&

Re: [Assp-test] RegEx Backreferences - the basics

2021-11-04 Thread Thomas Eckardt
chstring1|searchstring2|searchstring3)[^@\r\n]{0,64}\@[^@\r\n]{0,64}\k.?>>>~ Want to know more about regular expressions? -> http://www.rexegg.com/regex-lookarounds.html Thomas Von: "K Post" An: "ASSP development mailing list" Datum: 04.11.2021 02

Re: [Assp-test] RegEx Backreferences - the basics

2021-11-04 Thread Thomas Eckardt
:"Thomas Eckardt" An: "ASSP development mailing list" Datum: 04.11.2021 09:22 Betreff: Re: [Assp-test] RegEx Backreferences - the basics to make backreferences working, regex optimization must be switched off for the complete regex -> tested -> worked >I'

Re: [Assp-test] RegEx Backreferences - the basics

2021-11-04 Thread Thomas Eckardt
anation there, I sure it will not work like you expect Thomas Von:"K Post" An: "ASSP development mailing list" Datum: 04.11.2021 02:29 Betreff: [Assp-test] RegEx Backreferences - the basics I've got nothing in my TestRe file except for a single lin

[Assp-test] RegEx Backreferences - the basics

2021-11-03 Thread K Post
I've got nothing in my TestRe file except for a single line: ~<<<(?:^|\n\r).*(searchstring).*@.*\1.*>>>~ The idea is to log any time there's a line that includes "searchstring" on the right and left of an @. This is just a very rudimentary test because backreferences seem to error for me. I