[EMFTVM] Problem with Back Slash character [message #1321295] |
Tue, 29 April 2014 07:43 |
Victor Pavon Messages: 50 Registered: April 2012 Location: Spain |
Member |
|
|
Hello,
I have a file path string where I'd like change all occurrences of Slash character by Back Slash character. I use the method replaceAll, but the problem is that I get the error:
org.eclipse.m2m.atl.emftvm.util.VMException: java.util.regex.PatternSyntaxException: Unexpected internal error near index 1
\
^
at public java.lang.String java.lang.String.replaceAll(java.lang.String,java.lang.String)
Local variables: []
Best regards,
Víctor Pavón.
Víctor Pavón,
Research at Quercus Software Engineering Group
University of Extremadura, Spain.
|
|
|
|
Re: [EMFTVM] Problem with Back Slash character [message #1321426 is a reply to message #1321367] |
Tue, 29 April 2014 09:24 |
Victor Pavon Messages: 50 Registered: April 2012 Location: Spain |
Member |
|
|
I escaped it. This is the ATL code:
helper context mmStrutsConfig!ForwardType def : getPages : Sequence(mmMIGRARIAMVC!Page) =
thisModule.allPageInstances->select(page | let pagePath : String = page.path.replaceAll('\\', '/') in página
pagePath.endsWith(self.path));
Víctor Pavón,
Research at Quercus Software Engineering Group
University of Extremadura, Spain.
[Updated on: Tue, 29 April 2014 09:25] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03791 seconds