[10] Results

Golang : Find IP address from string

golang ip-address regexp

In this short tutorial, we will learn how to get the first occurrence of an IP address in a given….... read more


Golang : Validate email address with regular expression

golang email validate regexp

This short tutorial is add on to my previous tutorial on how to validate email address with Golang.….... read more


Golang : How to check if input string is a word?

golang check-word regexp-syntax

Problem :

I'm writing a parser and I need to determine if the user input is a word or something….... read more


Golang : Validate hostname

golang validate hostname regular-expression regexp compile

Problem :

You need to validate if a given string is a valid hostname or not. Hostnames such as :

.... read more


Golang : Extract part of string with regular expression

golang regular-expression regexp extract-string

Below is a simple example of how to extract a specific part of a string with the help of regular….... read more


Golang : Format strings to SEO friendly URL example

golang seo-url regexp normalize unicode

Problem:

You want to take a string and format it to SEO friendly URL. SEO friendly means no uppercase, underscore….... read more


Golang : Use regular expression to validate domain name

golang hostname domain-name validate regexp

There are times when a user enter an invalid domain name as input and it is good to validate the….... read more


Golang : Underscore string example

golang underscore regexp regular-expression trim

Problem:

Your program needs to process data with whitespaces and quotes. You need a quick way to remove underscore characters….... read more


Advertisement