Skip to Content
0
Former Member
Feb 07, 2011 at 10:19 AM

String prblem for Find and Replace

26 Views

i have 40 char text. in given text will appier like below

1) Text = 'trea 123 bett $ 2 222* 333122218888 abc"

2) Text = 'trea 123 bett $ 2 222* 3331 2221 8888 abc"

3) Text = 'trea 123 123t $ 2 222* 3331- 2221-8888 abc"

4) Text = 'trea 123 be32t $ 2 222* 3331 2221 88889 abc"

now i want to Hide this 12 or 13 digit text number with '*' this 12 or 13 digit may come with space or without space or some time may be ' - ' sign. so i want output like below.

1) Text = 'trea 123 bett $ 2 222* ************ abc"

2) Text = 'trea 123 bett $ 2 222* **** **** **** abc"

3) Text = 'trea 123 123t $ 2 222* ****- ***-*** abc"

4) Text = 'trea 123 be32t $ 2 222* **** **** ***** abc"

should not change other digit in give Text.