Link to home
Start Free TrialLog in
Avatar of LuckyLucks
LuckyLucks

asked on

Regex in perl

Hi EEE

How do I write a regex in perl that trims each line at "] to the end of that line.

So my result file would look like:

0eef2427e-fdde-1341a-b5d1-1bc214721332451.pdf
0eef2427e-fdde-1341a-b5d1-1b24214721332451.pdf


Original file:
0eef2427e-fdde-1341a-b5d1-1bc214721332451.pdf"] was not found or subfolder ["DailyNews"] not created.
0eef2427e-fdde-1341a-b5d1-1b24214721332451.pdf"] was not found or subfolder ["GlobalServicesInc"] not created.
SOLUTION
Avatar of Dan Craciun
Dan Craciun
Flag of Romania image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial