in reply to Search for account number in a file name
Do you have information about the structure of the file name? If (I'm guessing) it is a combination of fields joined by underscores, and you know that the first part is the account number with leading zeros followed by two digits, then you should make use of this knowledge. For example,
If you want you can encode this into a regex like /^0*(\d+)\d\d_/ (still based on my guess above).
|
|---|