Skip to content

Instantly share code, notes, and snippets.


Piash Sarker Piashsarker

View GitHub Profile
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,