Skip to content

Regex

IT Notes → Javascript @ December 22, 2020

  • Regex(str); or var e=/+s/g;
  • re.test(str); resultArray = re.exec(str);
  • str.match(rgExp); Also saves those in parenthesis.
  • str.replace(rgExp,”$2-$1″);
0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x