Hello,
I need to match a string like this: "one.two.three".
Each title is separated by a ".", and there must be at least one title, but the others are optional.
Here is my attempt:
while ("one.two.three" =~ /([A-Za-z0-9_].+)\.?([A-Za-z0-9_].+)?/g) {
print "$1\n";
}