Reply To: Thanks Dave

Product Compare Forums General General Chat Thanks Dave Reply To: Thanks Dave

Michal Vodicka

The difference between regex and plain searches can be really significant. I don’t have numbers but when developed BSC, I noticed it and wrote FindProgramTextSmart macro which is used for searching for symbols with regex prefix and postfix. For example: “struct[ \t\xFF]+” + Symbol + “[ \t\xFF]*[{]*[ \t\xFF]*(//.*)*$”. It searches for Symbol only and when a line is found, it searches it for whole regex and reperats procedure when not found. For large files searching was several times faster this way.