I have to compare two txt files contain more than 500 lines using perl script. In file A "Regulation" and a number will come in each line end. file B "RG" and a number will come in each line last end. Below two lines sample for this.I need to ignore if "Regulation 2" in File A and "RG 2" in File B i tried with pattern matching i am not getting
Optometrists and Opticians (simple) Regulations, Cap. 500A, RG 2 OPTOMETRISTS AND OPTICIANS (SIMPLE) REGULATIONS, Cap. 500A, Regulation + 2 $vldbString =~ s/Regulation\s+(\d+)\s*$/RG $1/g;
--- tried not working could you please help me to solve this issue.
Regards LancyIn reply to Comparing two text files by Lancy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |