I am unable to filter filenames that contain the character "[". After experimentation, reading BComp Help and the Scooter Forums, I think my problem is due to the >FolderCompare >NameFilters interpreting my filename strings as Regular Expressions.
As an example, I have many files with "[" and "]" embedded within their name, for example, my[OLD]Data.txt When I include the string, *[OLD]* in the >FolderCompare >FileFilters >NameFilters >IncludeFiles:box, the results are nonsensical.
As a temporary work-around, I used the string, *OLD]* which seemed to work. So I guessed that the leading "[" triggered RegEx behavior. I did some research and tried using the RegEx escape character, "\" as follows, *\[OLD\]* and *\[OLD]* but neither worked.
After more research, I tried *[[]OLD]* which worked, so I concluded that RegEx was operative. I don't use RegEx and don't want to learn their intricacies. It would be useful to either (1) have an option to turn ON/OFF RegEx in NameFilters, or (2) implement a way to escape reserved RegEx meta characters. By the way, what other chars could cause related problems?
If I am off-track, please set me straight. I don't use RegEx and don't want to learn their intricaies, but I just want to filter as simply as resonable.
I am using BComp 3.1.11 WinXP, SP3. Thanks for any help.
As an example, I have many files with "[" and "]" embedded within their name, for example, my[OLD]Data.txt When I include the string, *[OLD]* in the >FolderCompare >FileFilters >NameFilters >IncludeFiles:box, the results are nonsensical.
As a temporary work-around, I used the string, *OLD]* which seemed to work. So I guessed that the leading "[" triggered RegEx behavior. I did some research and tried using the RegEx escape character, "\" as follows, *\[OLD\]* and *\[OLD]* but neither worked.
After more research, I tried *[[]OLD]* which worked, so I concluded that RegEx was operative. I don't use RegEx and don't want to learn their intricacies. It would be useful to either (1) have an option to turn ON/OFF RegEx in NameFilters, or (2) implement a way to escape reserved RegEx meta characters. By the way, what other chars could cause related problems?
If I am off-track, please set me straight. I don't use RegEx and don't want to learn their intricaies, but I just want to filter as simply as resonable.
I am using BComp 3.1.11 WinXP, SP3. Thanks for any help.
Comment