|
BTW, quote from doc ( https://firebirdsql.org/refdocs/langrefupd25-similar-to.html ):
=== Building regular expressions Characters Within regular expressions, most characters represent themselves. The only exceptions are the special characters below: [ ] ( ) | ^ - + * % _ ? { ...and the escape character, if it is defined. === Where is CLOSING curvy bracket, "}", in this list ? > And for HEAD that pattern is:
> database = (%[\\/](e\{{[[:DIGIT:]]{{2}}\}}).fdb) Unfortunately, it does not work (checked on WI-T4.0.0.1224 F, build of 25.09.2018). Test is trivial: i just copy string that you've provided to trace config: === database = (%[\\/](e\{{[[:DIGIT:]]{{2}}\}}).fdb) { enabled = true time_threshold = 0 log_statement_finish = true } === -- then launching trace. And immediately get error: C:\MIX\firebird\fb30\fbsvcmgr.exe localhost:service_mgr action_trace_start trc_cfg C:\MIX\firebird\QA\fbt-repo\tmp\tmp_trace_5907.cfg Trace session ID 8 started Error creating trace session for database "": Passed text: illegal line <database = (%[\\/](e\{{[[:DIGIT:]]{{2}}\}}).fdb)> Duplicating of back slashes: database = (%[\\/](e\\{{[[:DIGIT:]]{{2}}\\}}).fdb) -- also does not help ,same error. Will be good to have it noted at fbtrace.conf
No, it will not work for {e25}.fdb, only for e{25}.fdb. And for HEAD that pattern is:
database = (%[\\/](e\{{[[:DIGIT:]]{{2}}\}}).fdb) ... What about database with exotic name, e.g. {e25}.fdb ? (i.e. curvy brackets are part of this name)
In 2.5 following pattern will work for such names: <database (%[\\/](e\{[[:DIGIT:]]{2}\}).fdb)> ... How should this pattern look in 3.0 ? It's impossible tor restore 1to1 2.5 behavior - "{" and "}" have special meaning since fb3. Therefore added special rule - to enter that symbols type them twice, i.e. "{{" and "}}". Line from the sample will look like:
database = (%[\\/](e[[:DIGIT:]]{{2}}).fdb) |
> Test is trivial: i just copy
Sorry for noise... It DOES work on WI-T4.0.0.1224, i did mistake related to multiple instances of FB installed on my machine.