Replace with template

Upload core product.
Post Reply
yeli
Posts: 4
Joined: Thu May 22, 2008 4:57 pm

Replace with template

Post by yeli »

Hello,

I use the jFileUpload in FTP-Mode. How can I replace two Points (..) in Filenames before the upload starts?

This:
<param name="param8" value="template">
<param name="value8" value=":regex=[^\.\.]:._.:">

dont work.

User avatar
support
Posts: 1503
Joined: Sun Jan 27, 2008 6:19 pm

Re: Replace with template

Post by support »

To replace all ".." by "._." you can try:
<PARAM NAME="template" VALUE=":regex=\\.{2}+:._.:">

But if you want to replace all "... and more" by "._." then you can try:
<PARAM NAME="template" VALUE=":regex=\\.{2,}+:._.:">

"2," mean at least two occurrences. For instance, it will convert:
gé..@...!çroup1..test.jpg into gé._.@._.!çroup1._.test.jpg

Does it help ?

yeli
Posts: 4
Joined: Thu May 22, 2008 4:57 pm

Re: Replace with template

Post by yeli »

Great! It works fine.

Many thanks!

Post Reply