@javascript_daily
جاوا اسکریپت روزانه
Channel ID: 6181
2
subscribers
Avg Views
97
per post
Growth Rate
N/A
Engagement
48.5%
Fake Score
0/100
Related Channels in Public
Latest Posts
Channel created
12:34
0 views
05-17 20:51
05-17 20:51
Channel photo updated
12:34
0 views
05-17 20:51
05-17 20:51
lets learn js by #REGEXP
regexp is a string that describes a pattern e.g
Email and Phone.
we can define it in two ways
1. let re = /hi/;
2. let re = new RegExp('hi');
88 views1...
88 views
05-17 20:51
05-17 20:51
g. global
i. ignore
97 views12:57
97 views
05-17 20:51
05-17 20:51
let message = 'Hi, are you there? hi, HI...';
let re = /hi/gi;
let matches = [];
let match;
do {
match = re.exec(message);
if(match) {
matches.push(match);
}
} while(match &...
100 views
05-17 20:51
05-17 20:51
#methodes for regexp
1. replace
2.search
3.match
100 views12:59
100 views
05-17 20:51
05-17 20:51
#replace syntax
1. let newStr = str.replace(substr, newSubstr)
2.let newStr = str.replace(substr | regexp, replacer);
3. function replacer(match, p1, p2, ..., offset, string);
100 viewse...
100 views
05-17 20:51
05-17 20:51