Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $text = '(ART)End Processing Autoroutines (12/06/15 15:50:47)'
- # Regex = ^ Code:(.*?) Description:.* Timestamp:(.*?) $
- $regex = [regex]::Match($text, '^\((?<code>.*?)\)(?<description>.*)\((?<timestamp>.*?)\)$')
- $regex.Groups['code'].Value # ART
- $regex.Groups['description'].Value.Trim() # End Processing Autoroutines
- $regex.Groups['timestamp'].Value # 12/06/15 15:50:47
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement