How to get the position of special char in a string?

UDA
Enthusiast

How to get the position of special char in a string?

How to get the position of special char in a string?

I need to convert the string given below under type A into Type B.

Type A Type B

'Jiby Jose' 'Jiby'
'Jiby: Jose' 'Jiby'
'Jiby?: Jose' 'Jiby'
'Jiby(A) Jose' 'Jiby'

for this I need to find the position of the special char and space in a string.
Please help me in this regard.

If possible please email me to venkatesh.gubba@gmail.com