This comment is hidden because it contains spoiler information about the solution
And not clever)))
not best practice at all
I had no idea how to add a variable to a regular expression, my solution was to generate a string using the variable, and pass the string to create a new regular expression object, your code is much nicer!
Loading collection data...
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
And not clever)))
not best practice at all
I had no idea how to add a variable to a regular expression, my solution was to generate a string using the variable, and pass the string to create a new regular expression object, your code is much nicer!