This works perfectly, but soon the 4 digits will turn to 5 digits as we move from 999.html to 10000.html. I don't know how to accommodate the extra digit.$url=q|$itemID|; $url=~/(\d{4})+\.htm/i; $num = $url;
Thanks!
In reply to Grabbing numbers from a URL by htmanning
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |