i want to extract a.foobar from this string everytime it happens but i dont want the a.shoebar to be part of my extraction.$string = a.foobara.foobara.foobara.bara.foobar x 100
i match the string "a.bara.foobar". but i want a.bar (without a foo in front of bar) simply not to match! What is the proper re?@array = ($string =~ m/(a.*?foobar)/gso);
In reply to repeating patterns by iradik
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |