Re: How do I create QRegExp?
Re: How do I create QRegExp?
Quote:
Originally Posted by
jpn
Actual, I need the filter expression...
that is, I need to shorten the long list into an expression, such as "b013[5-9][0-9]", not the other way around...
Re: How do I create QRegExp?
"^b013[5-9]\d$" or "b013[5-9]\d"
it depends on your filter purpose.
Re: How do I create QRegExp?
Quote:
Originally Posted by
lni
that is, I need to shorten the long list into an expression, such as "b013[5-9][0-9]", not the other way around...
Do you mean that you want to dynamically detect what's in the list and create as strict regular expression as possible based on the list contents?
Re: How do I create QRegExp?
Quote:
Originally Posted by
jpn
Do you mean that you want to dynamically detect what's in the list and create as strict regular expression as possible based on the list contents?
Yes, that is exactly what I am looking for...
Re: How do I create QRegExp?
That would be an AI question !! u can search for pattern matching algorithms,
I dont think it will be easy to do in good time :(