JavaScript Tutorial | Regular Expression in JavaScript Ep#1 - RegExp - regex

Published: 21 May 2021
on channel: stepUP
1,498
48

#Shorts

😍😍 😎😎Please Like this video and Subscribe my channel: https://bit.ly/3vvOCiS


Regular Expression in JavaScript Ep#1
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
// A regular expression is an object
// that describes a pattern of characters.
// Regular expressions are used to perform
// pattern-matching and "search-and-replace"
// functions on text.
// Syntax - /pattern/modifiers;
// --- /vCoding/i

// RegExp g modifier

let str = 'welcome to vCoding channel';
let ptrn = /C/g;
var res = str.match(ptrn);
console.log(res);



let str = 'Like & subscribe vCoding channel.';
let ptrn = /vCoding/g;
var res = str.match(ptrn);
console.log(res);
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬

#regex #regexp #RegExp #JavaScriptTutorial
#shortvideo




- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Music in this Video:
When you are using this track, we simply ask that you put this in your description:



- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -


On this page of the site you can watch the video online JavaScript Tutorial | Regular Expression in JavaScript Ep#1 - RegExp - regex with a duration of hours minute second in good quality, which was uploaded by the user stepUP 21 May 2021, share the link with friends and acquaintances, this video has already been watched 1,498 times on youtube and it was liked by 48 viewers. Enjoy your viewing!