Identify the No of Symbols

Hello,

I have text like Whats you name | Shriharsha | Ramesh | #Ganesh | Suresh in this i need to identify how many | is their mean count and between two | how many hashes are available output should be like.

| contains 3
Hash contains 1 in the 3rd and 4th | between like this

anyone can help :slight_smile:
Thanks in advance :slight_smile:

@Palaniyappan

@Shriharsha_H_N

Do you want to count slash | here ?

@lakshman i need a count of how many | are available and i need to find a whch name contains # that name slash count also

@Shriharsha_H_N

To count slash try this.

      inputStr.Split("|"c).Count

@Shriharsha_H_N

Then you have to iterate one by one value from that array and check whether that word contains Hash tag or not.

error

@Shriharsha_H_N

All these activities are under ForEach loop ?

Could you please show me Full Screenshot of your flow and need to check once.

@lakshman

@Shriharsha_H_N

Add Tostring after that count and check it once.

@lakshman its counting only no of | 's i need in which | between contains slash also like in the 3rd & 4th | middle contains # means in the output 3rd & 4th middle having a slash like that

@Shriharsha_H_N Here you go with xaml try this and let me know

Sequence.xaml (5.6 KB)

1 Like

Hi,
Try using regex.
I have attached check.xaml for referencheck.xaml (7.8 KB) ce.

Thanks

Thanks its working

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