My problem is that I have a string in javascript and the string may or may not begin with
(d) this pattern. Where d is a random number.
What I am looking for is an efficient way to remove the this pattern from the beginning of my string.
For eg:
(3)Abcd should be converted to Abcd,
(412)abc should be converted to abc,
abcd should remain abcd
A normal substring won’t do the trick for me, since I don’t know the exact number of digits.
Any help is appreciated
1 Answer