Category: Javascript


Regular Expression: Find Capital Letter Words and other examples

RewriteRule ([A-Z][a-z]+)([A-Z][a-z]+)?([A-Z][a-z]+)?([A-Z][a-z]+)?([A-Z][a-z]+) String: TodayIsMonDayYes Output: $0: TodayIsMonDayYes $1: Today $2: Is $3: Mon $4: Day $5: Yes Add Spaces Before Capitals $regexp(title,(<=\l)(?=\u), ) It looks back one character for a lower case letter, “(?<=\l)”...


Javascript String Prototype Extensions

Most variables in JavaScript represent themselves internally as strings. The String class in JavaScript contains a number of handy methods, but many commonly-used functions which are available in other languages, such as the trim()...