Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Piash Sarker Piashsarker

🎯
Focusing
View GitHub Profile
@Piashsarker
Piashsarker / javascript-regular-expression-example.js
Created Dec 9, 2018
JavaScript Regular Expression Beginner Guide.
View javascript-regular-expression-example.js
// The case of string characters don't matter in case-insensitive search.
var regexInsensitive = new RegExp('abc','i')
console.log(regexInsensitive.test('Abc')); // returns true
/*************************************************************************
Character set [xyz] — 
A character set is a way to match different characters in a single position,