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
Thanks in advance