Hey i want regexp in java script to select all the contents of text area .I want to implement this through voice commands.As soon i say select all command it should select all the contents of text area.
but this function is not highlighting anything. How to do this??
Code:
function selectall(s)
{
return s.match(/[a-zA-Z]+/g);
}