How to find uppercase words in a given sting using LINQ in UiPath

Problem statement : we need to extract the uppercase words in a given sentence and display it to the user

Here is the sample phrase

Drag the assign activity to the workflow, write the following query
Query

Run the code and see the live action

YouTube : Find uppercase words in a given sting using LINQ in UiPath - YouTube

Medium: How to find uppercase words in a given sting using LINQ in UiPath - Manoj Batra - Medium

Code: UiPathSamples/11 - Find All Uppercase in a string at main · manojbatra071/UiPathSamples · GitHub

Happy Automation

4 Likes

There is a Matches activity that will do this for you using Regex…

image

You can use the Matches activity to get an array of all the matching words.

2 Likes

Thanks for highlighting this. :slight_smile:

The idea here is to let the developers aware that there is a possibility to do this via LINQ as well. I might have chosen the wrong example in the demo. However, the intention here is to retrieve the uppercase from any string via LINQ, be it in a datatable table or any other list/dictionary/any IEuumerable collection.

Hope you are okay with that