I was wondering if there is either a regex that will parse a string like strtol. I have the following string:
"[(58)(4)] Federal Census [(60)(3)] County/Parish, (File 1 of X)"
I used:
my @values = split(" ", $_);
to split on space, but if there is a '[' in the array element, I want to extract the numbers
for exmple from [(60)(3)] i want the 60 and then the 3, one at a time.
i have never been really good with regular expressions. There so easy to use, someone wrote a book about them
Thanks in advance
Largins
In reply to perl equiv regex for C strtol by Largins
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |