<?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 Split text by line and then in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Code-stage-Utility-that-can-combine-first-2-lines-and-delete-3rd/m-p/62249#M15401</link>
    <description>Split text by line and then loop and then add text together.</description>
    <pubDate>Mon, 11 Sep 2017 12:22:00 GMT</pubDate>
    <dc:creator>Christer_Tellefsen</dc:creator>
    <dc:date>2017-09-11T12:22:00Z</dc:date>
    <item>
      <title>Code stage/Utility that can combine first 2 lines and delete 3rd and 4th lines?</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Code-stage-Utility-that-can-combine-first-2-lines-and-delete-3rd/m-p/62247#M15399</link>
      <description>Hello,

I was hoping for a bit of assistance.

I am trying to manipulate some data. I get text and store it into a data item.

It looks like so:
--------------------------
 2
September 2017.
Dated 19 August 2017
19 August 2017
---------------------------

I am trying to combine/join the first 2 lines so it looks like (2 September 2017) and delete the other 2 lines.

All 4 lines are variable in value (always dates as text), and so I cannot simply remove the above text with replace function.

I am sure there would be a visual basic/.net code that can achieve this outcome, however lack the knowledge myself.

Regards

Andrew</description>
      <pubDate>Mon, 11 Sep 2017 04:54:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Code-stage-Utility-that-can-combine-first-2-lines-and-delete-3rd/m-p/62247#M15399</guid>
      <dc:creator>andrew_doman</dc:creator>
      <dc:date>2017-09-11T04:54:00Z</dc:date>
    </item>
    <item>
      <title>I have at least gotten rid of</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Code-stage-Utility-that-can-combine-first-2-lines-and-delete-3rd/m-p/62248#M15400</link>
      <description>I have at least gotten rid of lines 3 and 4 with an instring looking for the ""."" and then obtained left -1 of that instring number value.
Now just need to combine lines 1 and 2 with space between both lines (2 September 2017).
I've heard there should be a regex utility available however in the development environment instance of BP I am working with it doesn't seem to be present.</description>
      <pubDate>Mon, 11 Sep 2017 05:42:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Code-stage-Utility-that-can-combine-first-2-lines-and-delete-3rd/m-p/62248#M15400</guid>
      <dc:creator>andrew_doman</dc:creator>
      <dc:date>2017-09-11T05:42:00Z</dc:date>
    </item>
    <item>
      <title>Split text by line and then</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Code-stage-Utility-that-can-combine-first-2-lines-and-delete-3rd/m-p/62249#M15401</link>
      <description>Split text by line and then loop and then add text together.</description>
      <pubDate>Mon, 11 Sep 2017 12:22:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Code-stage-Utility-that-can-combine-first-2-lines-and-delete-3rd/m-p/62249#M15401</guid>
      <dc:creator>Christer_Tellefsen</dc:creator>
      <dc:date>2017-09-11T12:22:00Z</dc:date>
    </item>
    <item>
      <title>No need to use regex or code</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Code-stage-Utility-that-can-combine-first-2-lines-and-delete-3rd/m-p/62250#M15402</link>
      <description>No need to use regex or code stage to solve this. Use a multi calculation stage with the following expressions (""Data"" is the name of the data item):
Left([Data], InStr([Data], ""."")) and store result in Data - this removes line 3 and 4
Replace([Data], NewLine(), "" "") and store result in Data - the replaces the new line with a space</description>
      <pubDate>Mon, 11 Sep 2017 12:30:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Code-stage-Utility-that-can-combine-first-2-lines-and-delete-3rd/m-p/62250#M15402</guid>
      <dc:creator>OlaNykvist</dc:creator>
      <dc:date>2017-09-11T12:30:00Z</dc:date>
    </item>
  </channel>
</rss>

