Perl - Regular Expression - List
Posted on 2003-03-13
I've a list of text which should be matched, and then get replaced by another list of text. For eg., the first list will be "0,1,2,3" and the second list would be "Zero,One,Two,Three". Is there any SINGLE pattern with which I can do this? If so please tell me.
Input: This is 0 test and 1 test.
Output: This is Zero test and One test.