Thread: Regex Help

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

    Join Date
    Nov 2009
    Posts
    1
    Rep Power
    0

    Question Regex Help


    Howdy,

    I am trying to build a regex statement that would retrieve the value: 109 minutes.

    $pattern = "[0-9] /minutes/";

    This is what I got, but it still doesnt work. Any suggestions?
  2. #2
  3. Transforming Moderator
    Devshed Supreme Being (6500+ posts)

    Join Date
    Mar 2007
    Location
    Washington, USA
    Posts
    14,238
    Rep Power
    9400
    Code:
    /\d+ minutes/

    Comments on this post

    • f_nietzsche agrees : Orrrrrrrrrrrrrrrrrrrrrrrrrr /109 minutes/ :D

IMN logo majestic logo threadwatch logo seochat tools logo