Need Help on regex

Discussion in 'PHP' started by rahulsonar, Oct 13, 2011.

  1. #1
    Hi All,

    I have a pattern like this:

    RS-1.75 m(TE)

    from which, I want to select string from round brackets ( in this case, TE). Can anyone help me in regex or any other way to do this?

    Thanks,
     
    rahulsonar, Oct 13, 2011 IP
  2. JohnnySchultz

    JohnnySchultz Peon

    Messages:
    277
    Likes Received:
    4
    Best Answers:
    7
    Trophy Points:
    0
    #2
    what are the possible values inside the parethesis?

    you can try this first..
    /\([A-Z]+\)/i
    Code (markup):
     
    JohnnySchultz, Oct 14, 2011 IP