I am just trying to remove bullets from the text. For example when i am copying bulleted text list from MS Word to any textbox it is showing along with bullet. Can somebody tell
Do you see any • in x? No, so you can't replace it. To achieve what you want, use:
x.replace(/^\s*[0-9]+\.\s*/, '');
What the regex does is basically removing any [number]., along with any whitespace before and after it, so what is left is the text you need.
[number].