[SOLVED] regular expression

amypu
amypu New Altair Community Member
edited November 5 in Community Q&A
How do I extract "AMD" from "Advanced Micro Devices, Inc. (AMD)"?
What would regular expression be for this?
Tagged:

Answers

  • It depends on the operator you are using but if you are looking for everything between the brackets then you would need a capturing group.

    Something like this

    \((.*)\)

    then $1 would return what you need

    Andrew
  • amypu
    amypu New Altair Community Member
    Thanks much!