🔥 Huge shoutout to @SVDG_XEC the absolute legend who just swept through my #NFT collection like a storm! 🙌
— Gaexe (@gaexe_) May 30, 2025
Your support isn’t just noticed — it’s legendary. You didn’t just collect — you made history. 🚀
Looks like I’ll be pulling an all-nighter tonight.👨💻🌙 #NFTCollector $XEC pic.twitter.com/vKwKByk7fi
I would like to ask how to parse a String and add a Line break ( \n) every 100 characters. I know that you can parse The String with Regex, but don't know how to proceed later. Can someone help?
You can do something like this:
String str = "....";
String parsedStr = str.replaceAll("(.{100})", "$1\n");This will replace every 100 characters with the same 100 characters and add a newline at the end.
(.{100})will capture a group of 100 characters. The second $1 will place the contents of the group. Then \nawill be added to the 100 characters that were just matched.
