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

    Join Date
    Apr 2013
    Posts
    1
    Rep Power
    0
    [[ since this has its own solution, split from http://forums.devshed.com/regex-programming-147/match-after-n-th-occurrence-of-something-601340.html --requinix ]]

    These examples work but I am stuck on how they work.

    In my case I am trying to return the second number from a string that looks like this...

    <Vector (0.0568, 10.1234, -5.5432)>

    and I am looking for 10.1234 (the second number) from this line.

    can anyone offer me a bit of a hint as to how to do that?


    </cc>
    Last edited by requinix; April 25th, 2013 at 04:12 PM.
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Jun 2012
    Posts
    776
    Rep Power
    495
    Perhaps something like this:

    Code:
    /<Vector \([\d.]+, ([\d.]+),/
    The match should be the second number.

IMN logo majestic logo threadwatch logo seochat tools logo