I'm new to perl so I may have made a mistake. Here are two examples of the strings I want to delete
{ Programa 1.2.3 64-bit 2dat: }
{ Programb 10.1.2.3 64-bit 1dat: }
Also sometimes there are no spaces between the braces like {Programa 1.2.3 64-bit 2dat:}, { Programa 1.2.3 64-bit 2dat:} and {Programa 1.2.3 64-bit 2dat: }. Does this make a difference to the code?
It would be good to get rid of both strings in one script. I'm using Perl version 5.24.1.
Update: After doing some reading, I have now tried s/.*\K\{\s*Name.*\}//s; and that seems to work with spaces/no spaces with the {}. I still don't know how to use one script to remove two or more strings like { Programa 1.2.3 64-bit 2dat: } and { Programb 10.1.2.3 64-bit 1dat: }.
Thanks.
In reply to Re^4: Delete a string possibly over two lines
by texuser
in thread Delete a string possibly over two lines
by texuser
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |