DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
6+2 =
Submit