Using regex to extract data from a text file and output it as an object - Powershell RRS feed

  • Question

  • HI

    I would like to use regex to extract username and Roles (the last line of the text file) and output that as an object:

    {username, roles[]}

    Action:                 NEW

    User name:              Catherine Chae
    Job title:              Finance Operations Representative
    Direct report:          David French
    Department:             Financial Control & Reporting
    Location:               St Leonards, NSW
    Floor number:           9
    Employment type:        Contractor/Temp
    Start date:             11/09/2017
    Finish date:            16/03/2018

    OEP Loss Form CustOps, Reverse Fees, TREX Update, User


    • Moved by Bill_Stewart Wednesday, October 18, 2017 8:05 PM This is not "scripts on demand"
    Friday, September 1, 2017 5:51 AM