winman2004
9th October 2013 09:20 UTC
validation in nsis for set of characters
In nsis i want to validate a string. Actually it is a folder name. So it should not contain / ,\, <, >, ?, .,:,* etc. So how can i validate it?
Also i want to replace a string by substring. If a path contains "//" then replace with "/". So i want replace string option also.
T.Slappy
9th October 2013 09:31 UTC
Validating with regex of simple validation in cycle like:
{For} 0 to Strlen
${if} character == '?'
${Orif} character == '\'
...
{Next}
?
winman2004
9th October 2013 10:11 UTC
Originally posted by T.Slappy
Validating with regex of simple validation in cycle like:
{For} 0 to Strlen
${if} character == '?'
${Orif} character == '\'
...
{Next}
?
In for loop how to check for each character? i am not clear with your solution.
Afrow UK
9th October 2013 10:30 UTC
1. http://nsis.sourceforge.net/StrCSpn,...for_characters
2. Use StrReplace from the manual.
Stu