I’m trying to omit all the info below or blank it out with regex statement, the numbers and alphanumeric characters are subject to change. I’ve used this statement , but it doesnt get the alphanumeric characters after credential=
(?:# \bPeriodic rotation on\b ([0-9]){1,13})|(\bcredential=\b)|
Periodic rotation on 1676471257196
credential=Wa8lAdpBFTpFrBWGqgf19Zadgjvik/IXKAtBb4LDOQm2HhymNQp6egXf4ee2Y90YWgKQsuUBrmwlZR33wQLe+1mWvyj7lSJtJ1CHCe7+PDlfO9ZIwREWCZJZItquhcxPrV0kk5xKKkw=
ppr
(Peter Preuss)
February 15, 2023, 7:58pm
2
not sure if we got you right. Are you looking for this?
That gets the alphanumeric , but I wanted from Periodic rotation to the alphanumeric characters after credential= and replace with blanks or spaces
ppr
(Peter Preuss)
February 15, 2023, 8:26pm
4
better you share also output sample, so we reduce ping pongs.
For Regex.Replace have a look here:
This CheatSheet introduces the basic use of regex functions. With further examples also special cases are presented.
Introduction
From the namespace System.Text.RegularExpressions following methods are offered:
Regex.Match
Regex.Matches
Regex.isMatch
Regex.Replace
Regex.Split
A simple usage for example would look like this:
[grafik]
Recommendation:
add System.Text.RegularExpressions to the imports:
[grafik]
it allows to use the shortened statement, as the namespace part can be ommited…