无网络连接
  1. Home
  2. Questions

Regex Replace - Replace with newline

作者:@matty
    2022-12-05 19:59:02.220Z

    What is the correct way to replace with a newline?

    I have tried the below and '\n' and these do not work

    Thanks,

    Matt

    在帖子#中已解决2,点击查看
    • 2 回复
    1. D
      Daniel Horton @daniel.horton
        2022-12-07 13:08:36.178Z2022-12-16 11:00:31.468Z

        Hi matty,

        Thank you for raising this. We will update the Regex Replace to support parser markers (such as <LF>, <CR>, <TAB>, etc). This will then mean you can use within your replace making the content look like this:

        Parser Markers from our help files

        Marker Details Example
        <CR> A carriage return character " ,<cr>" - look for space, comma or carriage return.
        <LF> A line feed character " :<lf>" - look for : or line feed.
        <TAB> A tab character " <tab>" - look for a space or a tab.
        <ESC> An escape character " <tab><esc><cr>" - look for a space, tab, esc or carriage return.
        <CRLF> A carriage return + line feed "<tab><crlf>" - look for a tab or carriage return + line feed.
        <BLANKLINE> A blank line " <blankline>" - look for a space or a blank line.
        <END> End of data " ,<cr><end>" - look for space, comma, carriage return or end of data.
        回复1 赞解决方案
        1. M@matty
            2022-12-20 20:36:17.661Z

            @daniel.horton I don't see this in the latest release notes, still in the works?:

            5.0.900 (14th December 2022)

            Fix: Fixed issue with Run A Report action. The report designer crashed if an external Excel or CSV data source was added.
            Fix: Fixed issue with IMAP Message Source not reading new messages after first run when connected to certain IMAP servers.
            Fix: Fixed issue with Office 365 Create Appointment action where an All Day Event spanned multiple dates.
            Improvement: The Print action header font was too small.
            Improvement: The Run A Program action now has an option to execute the process via the Studio/Desktop Connector. See updated action help for more information.