Support is online

regular expression #8472

Open AAVA Handelsonderneming BV opened this topic Saturday, 27 August 2016 · 2 replies
Author

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

Support

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

Author

Roland,

Thanks, i wait for the stable release.

Regards,

Ronald

Log in to reply to this topic.