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

2021-11-05 Thread K Post
it can be, except one small trick - the negative > lookahead (?!\k). So, yes - looking around the string without moving > the position around makes some things more easy. > > > This thread should be stopped here. This is a test list for development > versions - it is not a blog and it

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

2021-11-05 Thread Thomas Eckardt
moving the position around makes some things more easy. This thread should be stopped here. This is a test list for development versions - it is not a blog and it is not a place to learn perl regular expressions. Thomas Von:"K Post" An: "ASSP development mailing

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

2021-11-04 Thread K Post
oFirst and FROMFirstMatch sections. Whew. : On Thu, Nov 4, 2021 at 4:53 AM Thomas Eckardt wrote: > forgot to say: > > if assp requires to capture the match for a regex, the code would be for > example > > $string =~ /($testReRE)/ > $match = $1; > > so - at runtime the

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

2021-11-04 Thread Thomas Eckardt
?searchstring1|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.20

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
and if I read the explanation 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

[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 wo