A one-line solution to highlighting search matches
A developer shares a clever one-line JavaScript solution using String.replace() to highlight search terms in text results with HTML <mark> tags.
A developer shares a clever one-line JavaScript solution using String.replace() to highlight search terms in text results with HTML <mark> tags.
Explains the Terraform trimspace() function, its usage, and examples for removing trailing whitespace from strings.
Explains Terraform's title() function, its behavior, and its limitations for capitalizing strings.
Explains the substr() function in Terraform for extracting substrings, including examples and use cases.
Explains the Terraform split() function, its syntax, use cases, and provides practical examples for splitting strings into lists.
Explains the Terraform replace() function for string manipulation, including regex usage and practical examples.
Explains the Terraform chomp() function, which removes trailing newlines from strings, with examples and practical use cases.
A beginner-friendly introduction to Regular Expressions in JavaScript, covering basic concepts, syntax, and practical applications.
Announcing Voca, an open-source JavaScript library for comprehensive and modular string manipulation.
A guide explaining Unicode fundamentals and how JavaScript handles characters, including common pitfalls and ECMAScript 2015 features.
A PHP tutorial on using regular expressions to convert hashtags, mentions, and URLs in tweets into clickable HTML links.
Exploring challenges with downcasing UTF-8 strings containing Polish characters using command-line tools like tr and dd.
A historical look at JavaScript string manipulation, comparing the performance of split/join versus replace() for find-and-replace operations.