How to create a rule that export maximum of 5 first characters of any kind in a field.
I did my best but can not get out.
php 5.5.30
Ronald
Hello Ronald,
I am no expert in regular expressions either, a site like regexr.com can be useful. If you want to only export the first 5 characters of any value perhaps I can ask you if you are interested in testing the new multi-replacement plugin I am building for the next minor release of CSVI.
In PHP 7 it is no longer possible to use the /e modifier with regular expressions, so I have come up with a new plugin that allows for doing some basic replacements. One of them is to get a substring from a string. You can specify the start and end values. In your case that would be 0 - 4 to get the first 5 characters. Let me know if you are interested and I can send it to you on Monday as it needs some more work to be able to install it.
Kind regards,
RolandD
=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
Roland,
Thanks, i wait for the stable release.
Regards,
Ronald
Log in to reply to this topic.