Hi, The exact answer would be http://docs.factorcode.org/content/article-literals.html , for example: CONSTANT: CR-char-code 13 CONSTANT: LF-char-code 10 { 13 13 10 10 } ${ CR-char-code } ${ LF-char-code } replace
However, in this case you can also use the "CHAR:" parsing word { 13 13 10 10 } { CHAR: \r } { CHAR: \n } replace regards, Jon Jon On Mon, Feb 22, 2016 at 2:25 PM, Alexander Ilin <ajs...@yandex.ru> wrote: > Hello! > > The following code works the way I want it to: > > { 13 13 10 10 } { 13 } { 10 } replace > -> { 10 10 10 10 } > > But when I tried to use named constants, it no longer works: > > CONSTANT: CR-char-code 13 > CONSTANT: LF-char-code 10 > { 13 13 10 10 } { CR-char-code } { LF-char-code } replace > -> { 13 13 10 10 } > > I realized, that probably the issue is that by constructing sequences with > { } I somehow didn't give the words a chance to push their values instead of > themselves. > > What would be the correct way to use named constants for such a use case? > > ---=====--- > Александр > > ------------------------------------------------------------------------------ > Site24x7 APM Insight: Get Deep Visibility into Application Performance > APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month > Monitor end-to-end web transactions and take corrective actions now > Troubleshoot faster and improve end-user experience. Signup Now! > http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140 > _______________________________________________ > Factor-talk mailing list > Factor-talk@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/factor-talk ------------------------------------------------------------------------------ Site24x7 APM Insight: Get Deep Visibility into Application Performance APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month Monitor end-to-end web transactions and take corrective actions now Troubleshoot faster and improve end-user experience. Signup Now! http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140 _______________________________________________ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk