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.
Replace with templateRe: Replace with templateTo 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 ? Re: Replace with templateGreat! It works fine.
Many thanks! |