Regex statement

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=

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

better you share also output sample, so we reduce ping pongs.

For Regex.Replace have a look here: