Thanks a bunch, Karl. :)
On Mar 20, 8:39 pm, Karl Swedberg k...@englishrules.com wrote:
Hi Eric,
These should work:
var classes = 'your .string'.match(/\.[a-zA-Z_-]+/g);
var ids = 'your #string'.match(/#[a-zA-Z_-]+/g);
var idsAndClasses = '#your .string'.match(/(\.|#)[a-zA-Z_-]+/g);
Hi Eric,
These should work:
var classes = 'your .string'.match(/\.[a-zA-Z_-]+/g);
var ids = 'your #string'.match(/#[a-zA-Z_-]+/g);
var idsAndClasses = '#your .string'.match(/(\.|#)[a-zA-Z_-]+/g);
--Karl
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Mar 20,
2 matches
Mail list logo