<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Check for existence of line feeds / carriage returns in Dataflow</title>
    <link>https://community.fabric.microsoft.com/t5/Dataflow/Check-for-existence-of-line-feeds-carriage-returns/m-p/3632647#M1529</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="582610" data-lia-user-login="ebjim" class="lia-mention lia-mention-user"&gt;ebjim&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Thanks for using Fabric Community.&lt;BR /&gt;You can use the below codes for acheiving the above requirement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="python"&gt; Text.Contains([column1], String.Characters({10, 13}))&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;This approach uses &lt;/SPAN&gt;&lt;STRONG&gt;Text.Contains&lt;/STRONG&gt;&amp;nbsp;&lt;SPAN&gt;to check if the column contains any of the character codes for carriage return and line feed.&lt;STRONG&gt; String.Characters({10,13})&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;creates a string containing the character codes for line feed (10) and carriage return (13).&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;Text.Matches([column1], "\r|\n")&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You can also use&amp;nbsp;the&amp;nbsp;Text. Matches&amp;nbsp;function with a regular expression that matches both carriage returns and line feeds.&amp;nbsp;This expression will return a list of matches for either a carriage return (\r) or a line feed (\n) in the text column. If there are any matches, it means the text contains at least one line break.&lt;BR /&gt;&lt;BR /&gt;Hope this helps. Please let us know if you have any further questions.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 11 Jan 2024 07:56:28 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-01-11T07:56:28Z</dc:date>
    <item>
      <title>Check for existence of line feeds / carriage returns</title>
      <link>https://community.fabric.microsoft.com/t5/Dataflow/Check-for-existence-of-line-feeds-carriage-returns/m-p/3632251#M1527</link>
      <description>&lt;P&gt;Can Text.Contains be used to detect the existence of line feeds and carriage returns, e.g. TextContains([column1]."&lt;SPAN&gt;#(cr)#(lf)") ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jan 2024 05:31:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Dataflow/Check-for-existence-of-line-feeds-carriage-returns/m-p/3632251#M1527</guid>
      <dc:creator>ebjim</dc:creator>
      <dc:date>2024-01-11T05:31:35Z</dc:date>
    </item>
    <item>
      <title>Re: Check for existence of line feeds / carriage returns</title>
      <link>https://community.fabric.microsoft.com/t5/Dataflow/Check-for-existence-of-line-feeds-carriage-returns/m-p/3632647#M1529</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="582610" data-lia-user-login="ebjim" class="lia-mention lia-mention-user"&gt;ebjim&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Thanks for using Fabric Community.&lt;BR /&gt;You can use the below codes for acheiving the above requirement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="python"&gt; Text.Contains([column1], String.Characters({10, 13}))&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;This approach uses &lt;/SPAN&gt;&lt;STRONG&gt;Text.Contains&lt;/STRONG&gt;&amp;nbsp;&lt;SPAN&gt;to check if the column contains any of the character codes for carriage return and line feed.&lt;STRONG&gt; String.Characters({10,13})&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;creates a string containing the character codes for line feed (10) and carriage return (13).&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;Text.Matches([column1], "\r|\n")&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You can also use&amp;nbsp;the&amp;nbsp;Text. Matches&amp;nbsp;function with a regular expression that matches both carriage returns and line feeds.&amp;nbsp;This expression will return a list of matches for either a carriage return (\r) or a line feed (\n) in the text column. If there are any matches, it means the text contains at least one line break.&lt;BR /&gt;&lt;BR /&gt;Hope this helps. Please let us know if you have any further questions.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jan 2024 07:56:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Dataflow/Check-for-existence-of-line-feeds-carriage-returns/m-p/3632647#M1529</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-01-11T07:56:28Z</dc:date>
    </item>
  </channel>
</rss>

