Created
          June 4, 2014 13:36 
        
      - 
      
- 
        Save tomarbuthnot/a2f5d27a2b9a2fadf785 to your computer and use it in GitHub Desktop. 
    Lync Regex
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | # Get Extension from TelURI | |
| $LineURI = "$($GetCSUser.LineURI) " | |
| $regex = $LineURI | Select-String -Pattern "tel:\+(?:[0-9]+)+;ext=(?<1>(?:[0-9]+)+)" | |
| $extension = $regex.Matches[0].Groups[1].Value | |
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment