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

    Join Date
    Feb 2010
    Posts
    2
    Rep Power
    0

    Select string from round bracket


    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,
  2. #2
  3. Did you steal it?
    Devshed Supreme Being (6500+ posts)

    Join Date
    Mar 2007
    Location
    Washington, USA
    Posts
    14,072
    Rep Power
    9398
    What programming language are you using? And what have you tried so far?
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2011
    Posts
    30
    Rep Power
    3
    Code:
    \(([^)]+)\)
    you might need to add some escaping depending on the programming language you are using

IMN logo majestic logo threadwatch logo seochat tools logo