- Posted by
- I'm trying to get the filename out of the string \\NFS\directory\userspace\aaaaaa.bbbb.ccc using the search and replace function: Search: .*\\(.*)\..* While .*\\ works as expected (everything left of the filename is found), the RegEx above leads to error: "Invalid Regular Expression!" I do not see ...Posted in Find/Replace/Regular Expressions
-   Topics
-   Views
- mststgt
Oct 02, 2018
- The error is somewhere deeper in the code of UE, I'm afraid: After updating my macro with the command Find RegExp ".*[\\](.*)\..*" it is altered to Find RegExp ".*[\](.*)\..*" and even my favorite solution Find RegExp ".*\\{1}(.*)\..*" results in Find RegExp ".*\{1}(.*)\..*" 😒 Just reported that iss...Posted in Find/Replace/Regular Expressions
-   Topics
-   Views
- mststgt
Sep 28, 2018
- This topic is rather old, but there's a small flaw: In EDIFACT the ' may be masked with a ?, so you do not want to insert a line break after ?' and of course not if there are already line breaks in the file: Search: ([^\?]')([^\r\n]) Replace with: $1\r\n$2Posted in Find/Replace/Regular Expressions
-   Topics
-   Views
- mststgt
Sep 28, 2018
- Made some more tests... Results in an error: (\\) Working as expected : \\\( \\\)\(\) \(\) (\\+) (\\*) (\\{1}) Finally, I chose to use .*\\{1}(.*)\..* to solve my problem :-)Posted in Find/Replace/Regular Expressions
-   Topics
-   Views
- mststgt
Sep 28, 2018
- I reported the error, thanks for your help!Posted in Find/Replace/Regular Expressions
-   Topics
-   Views
- mststgt
Sep 28, 2018
- Hi all, I'm trying to get the filename out of the string \\NFS\directory\userspace\aaaaaa.bbbb.ccc using the search and replace function: Search: .*\\(.*)\..* While .*\\ works as expected (everything left of the filename is found), the RegEx above leads to error: "Invalid Regular Expression!" I do n...Posted in Find/Replace/Regular Expressions
-   Topics
-   Views
- mststgt
Sep 27, 2018