regex bug in negated character set
Posted: Mon Aug 14, 2023 11:23 pm
Thank you, Tim, for all the work you have put into Bible Analyzer. I am using BA version 5.5.1.18 for Windows, and have come across a bug.
I am using Advanced Search, search method Regular Expression, and using this valid Basic Regular Expression.
This matches three characters: the letter 'h', followed by a negated character set consisting of anything other than a space, and the letter 'd'.
Bible Analyzer returns an error message:
"Search error. Please see the User Manual for information on how to use each search method."
If you don't mind me asking, exactly which regex engine was used to enable regexes in Bible Analyzer? It looks like you're using PCRE's (Perl Compatible Regular Expressions), but Perl permits a space character in the expression pattern. This is not an error for Perl or most PCRE-compatible tools.
I am using Advanced Search, search method Regular Expression, and using this valid Basic Regular Expression.
Code: Select all
h[^ ]d
Bible Analyzer returns an error message:
"Search error. Please see the User Manual for information on how to use each search method."
If you don't mind me asking, exactly which regex engine was used to enable regexes in Bible Analyzer? It looks like you're using PCRE's (Perl Compatible Regular Expressions), but Perl permits a space character in the expression pattern. This is not an error for Perl or most PCRE-compatible tools.