Regular expression: zero or more occurrences of optional character /
RegexRegex Problem Overview
What is the regular expression pattern to say:
> zero or more occurrences of the character /
?
Regex Solutions
Solution 1 - Regex
/*
If your delimiters are slash-based, escape it:
\/*
*
means "0 or more of the previous repeatable pattern", which can be a single character, a character class or a group.