How to delete an unspecified number of strings before a specific character

Doubts, help and support about QuickBMS and other game research tools
sunnyboy76
Posts: 5
Joined: Thu Sep 09, 2021 2:42 pm

How to delete an unspecified number of strings before a specific character

Post by sunnyboy76 »

For example, here are three files
“12345678ABC”
“1234567ABC”
“123456ABC”
Now I want to delete all the characters before ABC, but the number is not fixed. How can I write a script to do this
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: How to delete an unspecified number of strings before a specific character

Post by aluigi »

Code: Select all

string VAR $ "ABC"

The examples provided in quickbms.txt from line 1585 (the section "String VAR OP VAR") are quite useful, sometimes I just try most of the operators until I get the result because I don't remember them :D