Re: Can't find duplicates after only Backspace in entry field.
- From: Zettai Muri <zettaimuri ymail com>
- To: Mario Kemper <mario kemper googlemail com>
- Cc: gtk-perl-list gnome org
- Subject: Re: Can't find duplicates after only Backspace in entry field.
- Date: Thu, 14 Jan 2010 11:24:13 -0800 (PST)
I've just had a quick look at your program, but I think the regular
expression you are using to find the duplicate is not correct in this
case.
Try
if ( $model->get($iter, $column) =~ /^$search_string$/ )
instead of
if ( $model->get($iter, $column) =~ /$search_string/ )
See http://perldoc.perl.org/perlre..html#Regular-Expressions for more
info.
Regards
Mario
Thank you very much for this. I really appreciate the help. Works like a charm.
__________________________________________________________________________________
See what's on at the movies in your area. Find out now: http://au.movies.yahoo.com/session-times/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]