cancel
Showing results for 
Search instead for 
Did you mean: 

REGEX action crashes BP application

MichalKlodner
Level 3
Hello everyone, I came in this issue: when using VBO Utility - Strings, Action Extract regex values, in some cases it causes BP to get totally stuck (specificaly Not responding). This happens very rarely and I know why - the reason is that the regex pattern is not 100% efficient (it is pretty complex) and for some target texts it leads to 'catastrophic backtracking' (tested in regex testers; in short: there are too many combinations). What I want to ask is: Is it possible to set some kind of timeout for the action/object to get exception instead of stopping BP? Or is there any other way to overcome this? Thanks a lot. Michal Klodner
2 REPLIES 2

Denis__Dennehy
Level 15
Nope - the only answer is not to create inefficient code..

MichalKlodner
Level 3
Hi Denis, sorry for the late reply. I have found out that .NET Framework 4.5 started supporting TIMEOUT property. I managed to tweak the code stage and get it done. Anyway, thank your reply. Michal K.