I am new to perl (beginner, learning perl for past 1 week during spare time). This is my first programming language.
I want to know how this regex []+ works in perl. I have 3 questions.
- What will this do:
if /[\d\s\.,:\/]+/?
I learned if /.../ matches pattern.
So will it match the following?
And which parts of the following will not match?
- 335.31, 312.52
- Dave1.532
- Path: "./1243/453 /48.1"
- 543, 546
Edit:
This is not a duplicate of the linked question as I am specifically asking how []+ works. The answer in the linked post does not cover this.
I know what each character in the regex I have written above represents and how each character work. What I want to know is how []+ will influence the regular expression. Specifically how the + will influence the [].