daily pastebin goal
80%
SHARE
TWEET

Untitled

a guest Jun 16th, 2015 227 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $text = '(ART)End Processing Autoroutines (12/06/15 15:50:47)'
  2.  
  3. # Regex = ^ Code:(.*?) Description:.* Timestamp:(.*?) $
  4. $regex = [regex]::Match($text, '^\((?<code>.*?)\)(?<description>.*)\((?<timestamp>.*?)\)$')
  5.  
  6. $regex.Groups['code'].Value               # ART
  7. $regex.Groups['description'].Value.Trim() # End Processing Autoroutines
  8. $regex.Groups['timestamp'].Value          # 12/06/15 15:50:47
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top