I've searched long time at examples and documentation but didn't find a function to search for a string from the end of a line within a ini file.
My test.ini looks like this:
I would like to remove the four lines which start with "Test01" but I only know the ID of the File (ID=78D3-F496-40e4-B08A-ADBA) and not the following Number at "Test" - this number can change.Test00 File=xy.dll
Test00 On=1
Test00 No=0
Test00 ID=4ED8-91F4-4a08-9006-0D47
Test01 File=abc.dll
Test01 On=1
Test01 No=0
Test01 ID=78D3-F496-40e4-B08A-ADBA
Test02 File=efg.dll
Test02 On=1
Test02 No=0
Test02 ID=CD5D-73B9-4a2b-BB8F-8751
My idea was to search for the ID remove that line and the three lines above. Or save the number in a $var and remove the lines by using this $var within the delete strings.