Lost password?    Lost username?    Create an account
OverviewDownloadsForumSupport
CSV Improved

CSV Improved

Replacement: remove last character

To drop the last character from a field you can use the Replacement feature of CSVI VirtueMart.

Since version 2.3.13.

Remove last character

  1. Go to Replacement
  2. Make a new entry with the following settings
    • Select the field you want to apply the rule to
    • Find: /(.*)([0-9])$/
    • Replace: $1
    • Type: Regular expression
    • Click on the Add icon
  3. Do an import of your template

Remove several characters from the end

To remove 3 characters from the end of your data you can use these steps:

  1. Go to Replacement
  2. Make a new entry with the following settings
    • Select the field you want to apply the rule to
    • Find: /(.*)([0-9]{3})$/
    • Replace: $1
    • Type: Regular expression
    • Click on the Add icon
  3. Do an import of your template
Replace the value 3 between the curly brackets to any number to remove more or less characters

TESTIMONIAL

Fantastic Component
5 stars
2012-06-08
This does exactly what is needed by my client, and was well worth the cost. Roland is incredibly responsive to forum questions, and if there is something that needs to be dealt with person to person, he is prompt with email responses.

Highly recommended.

STAY INFORMED


Stay informed with the CSVI newsletter.