How can I replace/append something (22)
string to something
, using some kind of expression matching something is not a constant its always different but the part (integer) is always the same. cheers
EDIT
I see that this something is a bit confusing(for me as well). Here is what I mean. I have a string - a word . Which contains alpha expression(a word, any word) one single space opening and closing paranthesis and inside of the an intiger. Now I'd like to replace blank space, paranthesis and integer inside to replace with nothing and leave just the alpha part of the string.
Ex:
Java (77)
Javascript (22)
Car (11)
Carpet (15)
After regex it should look like this :
Java
Javascript
Car
Carpet
Note, the regex is performed on each word seperatly, I just wrote couple of examples to make things more clear to read and understand. Thank you