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- 1bc2147213 32451.pdf
0eef2427e-fdde-1341a-b5d1- 1b24214721 332451.pdf
Original file:
0eef2427e-fdde-1341a-b5d1- 1bc2147213 32451.pdf" ] was not found or subfolder ["DailyNews"] not created.
0eef2427e-fdde-1341a-b5d1- 1b24214721 332451.pdf "] was not found or subfolder ["GlobalServicesInc"] not created.
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-
0eef2427e-fdde-1341a-b5d1-
Original file:
0eef2427e-fdde-1341a-b5d1-
0eef2427e-fdde-1341a-b5d1-
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.