[12] Results

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 : 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


Python : Fix SyntaxError: Non-ASCII character in file, but no encoding declared

python syntax-error non-ascii utf-8

Don't really know why Python couldn't handle non-ASCII characters in the source code well by default. Encounter a syntax error….... read more


Golang : error parsing regexp: invalid or unsupported Perl syntax

golang regular-expression unsupported-perl-syntax

Compiling and running Golang program will throw out some odd error messages sometimes. Got one today with this error message….... 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 : 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


Advertisement