I'm having a problem with RegEx. Every time I think I have it down the parameters of what i need to do change and I'm reminded how much RegEx can hurt your brain!
What I am currently trying to do is extract a certain string of an unknown length from a big text file. It's an event security log from a 3rd party to be exact. for most (if not all) I know the text before and after my string. Here is an example of what I need to look for Subject.Account_Name: SourceUserName Subject.Account_Domain: CORP
From that string I need to extract SourceUserName That will change for each line.
I have multiple logs that i need to parse through and for the most part know the beginning and ending string.
Can anybody help with the RegEx search OR if there is a suggestion on a better way to do this i am open.