+ Reply to Thread
Results 1 to 2 of 2

Thread: Powershell REGEX help needed

  1. #1
    Junior Member
    Join Date
    Jan 2012
    Posts
    35

    Powershell REGEX help needed

    I have a string that contain data like :
    Code:
    {name:"Jack", rank:157}
    {name:"James", rank:903}
    And i`d like to match that using regex , so i tried that REGEX :
    Code:
    '{name:"(\w*?)", rank:([\d]+)},'
    But it doesn`t return any data, is my REGEX wrong ?

  2. #2
    You can try :
    Code:
    "([^"]*)"
    instead of :
    Code:
    "(\w*?)"

+ Reply to Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts