Java: how to split a string into fixed length rows, without “breaking” the words.

The problem we face in this post is to take a long string and split it in several lines of fixed length that will be displayed. We must therefore divide this input string into multiple strings of a pre-defined maximum length but keeping the words entire without breaking them when the end of the line has been… (Read the full article)

Regular Expressions in Objective-C with the NSRegularExpression class

[Questo articolo è disponibile anche in ITALIANO: Espressioni regolari in Objective-C con la classe NSRegularExpression]

In today’s post we see how to use regular expressions in Objective-C. To do this, we create a simple application that reads a text file and looks for all occurrences of … (Read the full article)