Php format numbers in a string with regexp

Hello_1

New Member
I need help with writing a regular expression in PHP. I am not friend enough to get it right. I need to find all integers in a string and format them as follows:\[code\]1 to 0010000.13 to 000130100 to 0100000 \[/code\]and so on. In normal speech it means - edit the number prepend it with zeros or edit it to be in same "order". The point is to have all of the integers it the string in this format (6 numbers). Could someone help me please? I will not post my tryouts here because they are too foolish:-)
 
Back
Top