> > What if I want to have just those matched numbers?
Quote:
>
> You can access what's been matched by your entire pattern with $matches[0]
> Quote:
> > Later on I'd like to convert it to a number so if it's
>
> I spent ages trying to figure out how to do this. It seemed odd to me that
> you can conver a number to a string using .tostring but can't convert a
> string to a number using .tonumber (no such thing). Instead, do this:
>
> $i = "00001"
> $numeric_i = [int] $i
> How can i find such things in manual ? It looks like old good .net type
casting

But in .net at least in c# you use (int) not [int].. It would be
better if they left this like it was
Jedrzej