Medium
What RegEx has the same behavior as trim (JS) or strip(Python)
(Function that removes whitespaces at the beginning and end of a string)
Author: Nick LAM YEE MANStatus: PublishedQuestion passed 158 times
Edit
2
Community EvaluationsNo one has reviewed this question yet, be the first!
2
Find the intruder in the following regex: `^[a-zA-Z0-9_-]+$`3
Count the number of matches of the RegEx `a*` in the sentence: `I went to my grandparent house`5
Find all the strings that match the regular expression: `/abracadabra{2,4}/gmi`2
Write a regular expression that matches a character that repeats exactly 6 times.4
Which of the following is not a regular expression?2
Write a regular expression that matches anything that looks like an HTML tag.2
Write a regular expression to extract a file name from a path, except if the file is a .html file