Single code REGEX (Only experienced Regular Expression coders can apply)

Job ID: 32855875

Budget: £20 – £250 GBP

Hello,
We need a single REGEX command to do the following:
- Match/Replace a value between characters “nv” and hyphen “-“
- If the number is less than 4 digits, adds Zeros to complete the 4 digits.
- Must looks into the input regardless if the value is numeric or alphabetic.

Explaining the project:

The REGEX checks inputs similar to the following:

nv101-345678
nv1024-3452
nv10-RTVBH

The desired outputs for the above examples are:

0101
1024
0010

Technical issues:
- Escaping/Excluding hyphen since it is part of REGEX’s commands.
- Not using “\d” because the input may include alphabetical characters, not only numeric (like what you see in the third example) and therefore the code must check ANYTHING between “nv” and “-“ to return the exact value regardless of its type.

This project is a one-off (fixed) price. You hand over a code that works in a REGEX tool (like the one we use “Bulk Rename Utility” and if the output comes up with the required results; we will mark this job as done and release the money.

Only experienced people with Regular Expressions can apply. Please do not waste our time if you are not familiar with this matter.

Best regards,
Zed Sefi
Perfume Brands
Related categories: Excel Regular Expressions Coding Programming