Hello, I'm creating a script which reads in a filename that the user can select. The path string uses backslashes. I need to convert all the backslashes in the string to forward slashes, and then divide the filename and extension from the path. Is there a quick way of doing this? I was trying to use "\" in findPlainText and it won't allow it.
Thanks! fj91 - Wed Oct 19 15:09:49 EDT 2016 |
Re: Change Backslash to Forward Slash The \ is also the escape character (https://en.wikipedia.org/wiki/Escape_character), so you need to double it to able to use it in functions line findPlainText. A string replace function can be found at various places, e.g. at http://www.capri-soft.de/blog/?p=832
|
Re: Change Backslash to Forward Slash Mike.Scharnow - Wed Oct 19 15:27:38 EDT 2016 The \ is also the escape character (https://en.wikipedia.org/wiki/Escape_character), so you need to double it to able to use it in functions line findPlainText. A string replace function can be found at various places, e.g. at http://www.capri-soft.de/blog/?p=832
Thanks! |