I have two different questions

This is a variation of uppercase that uses a smaller font size for the letters. Small caps is often used for titles and headings.

Above text has to be convert into different cases like ( Sentence case, Uppercase, Lowercase & Toggle case).

Manjunatha

No of repeated alphabets in the above word.

Thanks in Advance

Hi @Pujari_Manjunatha

Try this for sentence case

System.Globalization.CultureInfo.CurrentCulture.TextInfo.ToTitleCase(sss)

Try this for upper

Stringname.toupper

Try this for lower

String name.tolower

1 Like

Check this below code
Main.xaml (7.4 KB)

input: Manjunatha
output: a - 2

The second output should be like the above.

Hi @Pujari_Manjunatha

Try this

https://www.google.com/url?sa=t&source=web&rct=j&url=https://rpalearners.com/find-duplicate-alphabets-and-their-count-in-string-uipath/&ved=2ahUKEwiJ5_vf7P7-AhWmTmwGHV-ABHAQFnoECC0QAQ&usg=AOvVaw2O4xkaHb_1k9eMBnQ2-3p_

Thanks
Ashwin.S

Follow the below steps.

  1. Take one Assign activity, set the “To” field to a variable of type Dictionary(Of Char, Integer) that will store the counts of each alphabet (e.g., alphabetCounts).

2.In the “Value” field of the Assign activity, enter the following expression:

"Manjunatha".GroupBy(Function(c) c).ToDictionary(Function(g) g.Key, Function(g) g.Count())

  1. Drag and drop a “Write Line” activity onto the workflow canvas.
String.Join(Environment.NewLine, alphabetCounts.Where(Function(kv) kv.Value > 1).Select(Function(kv) kv.Key & " - " & kv.Value))

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.