Blue Prism Product

 View Only
last person joined: 17 hours ago 

This community covers the core Blue Prism RPA product.

  • 1.  Split Number and Text for Multiple Lines

    Posted 09-29-2023 10:11

    Hi there,

    I want to split numbers and text and store them in different columns; reference number and reference text.

    1/ I have a reference text box which has multiple lines; for example

    In "Pet Category" Reference, we have:

    [8899] cat - cat food

    [9988] dog - dog food

    [7788] pet - pet food

    [9977] cow - cow milk

    My BP code for splitting numbers and text is shown below. However, it only works for [8899] cat - cat food, but not others [the other references are not split - still in original form) Note: Since the code, Mid([Reference Output],3,6) is for extracting numbers and Replace([Reference Output],Left([Reference Output],9),"") is for extracting text. The result will be [8899] and cat - cat food [which are separate for reference number and reference text columns].

    2/ My reference text box outcome will come in different ways; some of them will have 1 line, some of them will have 2 lines some of them will have 3 lines, and so on.

    In this case, what's the best way I should do to split text and number; according to their reference text box?

    Thank you so much!

    M



    ------------------------------
    Mia Mikela
    ------------------------------


  • 2.  RE: Split Number and Text for Multiple Lines

    Posted 09-29-2023 11:50

    Maybe the first step is to split the text into a collection of lines (Utility - Strings). Then loop through the collection and split the line into number & text.



    ------------------------------
    John Carter
    Blue Prism
    ------------------------------



  • 3.  RE: Split Number and Text for Multiple Lines

    Posted 09-29-2023 18:46

    @Mia Mikela,

    You can use the action "Extract Regex All Matches" from Blue Prism's Utility - Strings VBO (Blue Prism Digital Exchange - Utility Strings) to extract that information into a collection.

    You can use the Regex pattern:
    (?<ReferenceNumber>\[\d{4}\])\s+(?<ReferenceText>[^\r\n]+)

    What you will end up with is a collection of data that of all matches no matter how many lines your original text has:



    ------------------------------
    Micheal Charron
    Senior Manager
    RBC
    America/Toronto
    ------------------------------



  • 4.  RE: Split Number and Text for Multiple Lines

    Posted 09-29-2023 21:03

    Thanks @Micheal Charron,

    May I ask, instead of splitting numbers and text , how about keeping the reference output in its original form - but in a separate line when added to the collection

    What Regex pattern: I should use?

    Note: Given the reference output looks like this:

    [8899] cat - cat food
    [9988] dog - dog food
    [7788] pet - pet food
    [9977] cow - cow milk

    However, when I add them to the collection, they are looked like this: "[8899] cat - cat food [9988] dog - dog food [7788] pet - pet food [9977] cow - cow milk". So I want to split the line and keep its original form.

    Thanks a lot!

    M

     



    ------------------------------
    Mia Mikela
    ------------------------------



  • 5.  RE: Split Number and Text for Multiple Lines

    Posted 09-29-2023 21:15

    @Mia Mikela

    If you are just looking to split text by lines into a collection, as @John Carter pointed out, I would use the "Split Lines" action in Blue Prism's "Utility - Strings". Regex would be overkill in that situation.



    ------------------------------
    Micheal Charron
    Senior Manager
    RBC
    America/Toronto
    ------------------------------



  • 6.  RE: Split Number and Text for Multiple Lines

    Posted 09-29-2023 21:03

    Thanks @Micheal Charron,

    May I ask, instead of splitting numbers and text , how about keeping the reference output in its original form - but in a separate line when added to the collection

    What Regex pattern: I should use?

    Note: Given the reference output looks like this:

    [8899] cat - cat food
    [9988] dog - dog food
    [7788] pet - pet food
    [9977] cow - cow milk

    However, when I add them to the collection, they are looked like this: "[8899] cat - cat food [9988] dog - dog food [7788] pet - pet food [9977] cow - cow milk". So I want to split the line and keep its original form.

    Thanks a lot!

    M



  • 7.  RE: Split Number and Text for Multiple Lines

    Posted 09-29-2023 22:26

    Hi can you please have a look at my steps, I follow the steps, add loop, add split text. but it still doesn't work correctly

    and result look like this:  [8899] cat - cat food[9988] dog - dog food



    ------------------------------
    Mia Mikela
    ------------------------------



Welcome to the Blue Prism RPA Product Community!

Whether you’re looking to manage a complex infrastructure, maintain security and compliance, bring new products to market faster, or gain operational speed and agility in an uncertain economy, Blue Prism delivers — with the flexibility you need to create the business you want. From deployment on-premise, through a cloud service provider or as SaaS, to a skillful and adaptable digital workforce that continually expands to meet your enterprise needs, you can gain enhanced operational insight and control while your people reclaim the time they need to focus on great work.

Product PageKnowledge BaseBlue Prism Training Offering
Product Research Programv6 End of Life

FAQs

Blue Prism is intelligent automation — business-developed, no-code automation that pushes the boundaries of robotic process automation (RPA) to deliver value across any business process in a connected enterprise.

A combination of RPA with expanded cognitive and AI capabilities, Blue Prism is different than other automation technology on the market. With one Blue Prism license, you gain instant access to an already AI equipped digital workforce, along with the tools you need to build and delegate automations. Click here for more information on Blue Prism and Intelligent Automation.
To learn more about how Blue Prism RPA can help your organization and how much it will cost to get started, please Contact our Sales department.
Blue Prism RPA can be downloaded from our customer portal. If you would like to consume or download any material it is necessary to create an account on the Portal. Once you have registered, you can access the download options for Blue Prism here.
Yes! Installed on your own machine and supported by our training materials and product documentation, you can use all the features of the full enterprise product for free with our Blue Prism Trial – giving you the opportunity to learn the basics before moving to a full production implementation. Click here for more information and to download the trial.
Yes! You can access our known issue list for Blue Prism from our Support Portal.
Regardless of your industry, Blue Prism’s Digital Workforce can adhere to strict governance and compliance standards without limiting productivity. Click here for more information on how your industry can benefit from Blue Prism.