Slide 1
Most trusted JOB oriented professional program
DevOps Certified Professional (DCP)

Take your first step into the world of DevOps with this course, which will help you to learn about the methodologies and tools used to develop, deploy, and operate high-quality software.

Slide 2
DevOps to DevSecOps – Learn the evolution
DevSecOps Certified Professional (DSOCP)

Learn to automate security into a fast-paced DevOps environment using various open-source tools and scripts.

Slide 2
Get certified in the new tech skill to rule the industry
Site Reliability Engineering (SRE) Certified Professional

A method of measuring and achieving reliability through engineering and operations work – developed by Google to manage services.

Slide 2
Master the art of DevOps
Master in DevOps Engineering (MDE)

Get enrolled for the most advanced and only course in the WORLD which can make you an expert and proficient Architect in DevOps, DevSecOps and Site Reliability Engineering (SRE) principles together.

Slide 2
Gain expertise and certified yourself
Azure DevOps Solutions Expert

Learn about the DevOps services available on Azure and how you can use them to make your workflow more efficient.

Slide 3
Learn and get certified
AWS Certified DevOps Professional

Learn about the DevOps services offered by AWS and how you can use them to make your workflow more efficient.

previous arrow
next arrow

Regular expression perl question

Spread the Knowledge

rajeshkumar created the topic: Regular expression perl question

I am just beginner in perl. Just want to do following task through regular expression.

I have huge sql file and trying to replace value of each line first 4 digit separated by comma.

FILE 1:
(7, 0, 7, 55, NULL, 0, ”, ‘Wise Package Studio Overview and its advantage’, 1260350867, ‘203.145.176.177’, 0, 0, 0, 0, 197, 0, 0, 0, ”),
(8, 0, 8, 55, NULL, 0, ”, ‘what is Tarma QuickInstall 2 and its usage’, 1260351089, ‘203.145.176.177’, 0, 0, 0, 0, 61, 0, 0, 0, ”),
(9, 0, 9, 55, NULL, 0, ”, ‘what is Tarma Installer 5 and its usage?’, 1260351321, ‘203.145.176.177’, 0, 0, 0, 0, 253, 0, 0, 0, ”),
(10, 0, 10, 56, NULL, 0, ”, ‘what is Tarma ExpertInstall 3 and its usage?’, 1260351466, ‘203.145.176.177’, 0, 0, 0, 0, 69, 0, 0, 0, ”),
(11, 0, 11, 55, NULL, 0, ”, ‘What is Smart Install Maker and its usage?’, 1260351588, ‘203.145.176.177’, 0, 0, 0, 0, 241, 0, 0, 0, ”),
(14, 0, 14, 55, NULL, 0, ”, ‘what is MSI Studio and its use?’, 1260352667, ‘203.145.176.177’, 0, 0, 0, 0, 174, 0, 0, 0, ”),

FILE 2 : It should be manipulated from first file based on following specification…
First Digit – should be incremented by 1
Second Digit – if its 0, no change but with others digit +3
Third Digit -Should be added +3
Fourth Digit – if 55 then make it 65 and if 56 then make it 66
Rest digit should remain unchanged.

Any help on this? I am basically got stuck in regular expression part

Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn

Rajesh Kumar