#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2015
    Posts
    1
    Rep Power
    0

    First occurrence of a comma and everything after it


    I need a Regex expression that would locate the first occurrence of a comma and return everything after it, without hitting again on any subsequent commas. For example:


    28 North Franklin Street,PO Box 148,Richwood, OH 43344-1027

    I want to grab ",PO Box 148,Richwood, OH 43344-1027" from this string in one match.

    How can I accomplish this?
  2. #2
  3. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2015
    Posts
    5
    Rep Power
    0
    piece of cake: ",.*"
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2015
    Posts
    5
    Rep Power
    0
    Originally Posted by PeterJo
    piece of cake: ",.*"
    Upps, I mean [CODE=,.*][/CODE]
  6. #4
  7. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2015
    Posts
    5
    Rep Power
    0
    Yeah, nice trial...

    Code:
    ,.*

IMN logo majestic logo threadwatch logo seochat tools logo