By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,116 Members | 1,319 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,116 IT Pros & Developers. It's quick & easy.

Regex for selecting text area contents

P: 1
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.

Expand|Select|Wrap|Line Numbers
  1. function selectall(s)
  2. {
  3. return s.match(/[a-zA-Z]+/g);
  4. }
but this function is not highlighting anything. How to do this??
Apr 3 '14 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.