Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

jquery limit words in string

"this is a longish string of text".replace(/^(.{11}[^s]*).*/, "$1"); 
//"this is a longish"
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #jquery #limit #words #string
ADD COMMENT
Topic
Name
6+2 =