Strings functions in Golang
List of Golang string functions tested example and short description.
The strings
package provides many useful string-related functions.
How to split a string into slice in Golang
How to split a string into slice using Golang. For a simple split by a singular character you can use Split()
method from strings
package. For more complex rules the regexp.Split()
method can be used.
How to split a string in Java
How to split a string in Java using both variants of the split() method: split(String regex)
and split(String regex, int limit)
.
Split a string and loop in SQL Server
How to split a string and loop it's values in Microsoft SQL Server. Simple solution used to insert data into tables.
Split URL into components using regex
Split URL into components (protocol, domain, port and uri) using regex in Java. Simple and tested example.
Search
Other Posts
Follow Us On