How to use the Perl script to substitute the string ?



Hi all,

How to use the Perl script to substitute the string as below ?

Before :-
"This is a test message on 20070715230010987654321 abcd123456"
change to
"This is a test message on 200707152300109876***** abc****456"

Please help ! Many Thanks.

Richard



.



Relevant Pages

  • Re: How to use the Perl script to substitute the string ?
    ... So I need to locate this string first and replace part of the ... characters to "*". ... This is a test message on 20070715230010987654321 abcd123456 ... How to use the Perl script to substitute the string as below? ...
    (comp.lang.perl)
  • Re: How to use the Perl script to substitute the string ?
    ... How to use the Perl script to substitute the string as below? ... "This is a test message on 20070715230010987654321 abcd123456" ...
    (comp.lang.perl)
  • Re: Need help splitting up a fields data
    ... The easy way to parse out that kind of address is to extract what you know, and then remove it from the string, until the unknown part is left. ... So extract the zip code with RightWords, then Substitute out the string in the Zip field in the original field. ... Put that in the state field, then Substitute it out in the original field. ...
    (comp.databases.filemaker)
  • What could potentially be wrong in this script?
    ... I am writing a Perl script to check that dependency files exist that ... opening it, and then based on the type of file, saving a regex to ... foreach my $files ... The index call isn't working on this bizarre string. ...
    (comp.lang.perl.misc)
  • Re: User command to generate a formatted random number?
    ... substitute, and it will substitute all occurrences of 'a' with 'b'. ... empty strings for 'b'. ... The first pattern is '000$' where the zeros mean literal zeros and $ ... sed seems to replace the first instance of "se" here and not all of ...
    (comp.os.linux.misc)