I am starting to look into what needs to be done (Note this might be a little
off-topic)...
First, reminder, the <ExtraDatails> has like:
Command=Password$[Tab]Password$;ConnectionComponentId=Users;DstHost=my.soluti
ons;Protocol=NC;ID=Server_W01;SessionID=0c97ce2e-c0a2-467d-952e-e1b81a9a5149;
SrcHost=xx.zz.0.24;TXTOffset=1593B;User=xxxxx;VIDOffset=39T;
and I want to detect where the 2 password strings are the same length, and if
they are, then I will want to check if the 2 strings are identical...
So I first need to check if the length of string in front of the [Tab] is the
same the length of the string after the [Tab], before the semi-colon
For example Password$[Tab]Password$; passes that check, but:
Passwor$[Tab]Password$; does not pass the check...
So I was looking at a regex that would check for that (2 strings same length)
and found this:
https://stackoverflow.com/questions/36773889/can-i-write-a-regular-expression
-that-checks-two-lengths-are-equal
But, if I'm understanding the 1st "answer", where it says "This is not
possible with regular expressions...", it sounds like doing that initial check
can't be done with a regex.
So I am kind of puzzled about an approach to start...?
Maybe I am just starting down the wrong path (sorry, that was a pun :) !)...?
Jim
On Monday, July 22, 2024 at 05:57:27 PM EDT, Piez, Wendell A. (Fed)
<wendell.piez@xxxxxxxx> wrote:
Jim,
B
But your requirements are pretty well within what XSLT 1.0 will do, allowing
for how ugly the string processing is likely to be b so youbre not
completely stuck.
B
I would recommend playing around with the XSLT in an online test environment
b there are a bunch that will run in your browser safely, or safely enough.
XSLT Fiddle or the functional equivalent.
B
If you need to brush up on XSLT, this list still retains a depth of 1.0
expertise b although please make that clear so no one is tempted to offer an
up-to-date solution you canbt use.
B
Cheers, Wendell
B
B
B
|