Re: [Bibdesk-users] bug in find & replace?
On 05.10.2008, at 13:34, Christiaan Hofman wrote: > > On 5 Oct 2008, at 12:23 PM, Alex Hamann wrote: > >> Hi, >> >> using today's nightly: >> >> >> make a new bibliography >> add these two items: >> >> @article{Featherstone:1987zr, >> Author = {Featherstone, Kevin}, >> Date-Added = {2008-10-05 12:16:31 +0200}, >> Date-Modified = {2008-10-05 12:17:32 +0200}, >> Pages = {6-7}, >> Title = {PASOK and the Left}} >> >> @article{Morlino:1995ys, >> Author = {Morlino, Leonardo}, >> Date-Added = {2008-10-05 12:16:27 +0200}, >> Date-Modified = {2008-10-05 12:17:26 +0200}, >> Pages = {1-2}, >> Title = {Political Parties and Democratic Consolidation in Southern >> Europe}} >> >> open the find & replace window >> do a find & replace operation in the field PAGES with a REG EXP >> replacing (\d)\-(\d) with \1\--\2 (goal is to change the single >> minus in the page range by a double one) >> execute (either by "replace all" of by "find & replace") >> the result will be to have the exactly identical page range with a >> double minus in both entries, thus killing the correct information in >> the respectively second entry >> >> Bug or me not using reg exps properly? >> >> Alex > > The second option. We're using Perl regexp, which uses $0, $1, $2, ... > for placeholders rather than \0, \1, \2,... That has bit me several > times as well ;-) Also, you may want to use (\d*) instead of (\d). > > Christiaan > Thanks. A. - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ___ Bibdesk-users mailing list Bibdesk-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bibdesk-users
Re: [Bibdesk-users] bug in find & replace?
On 5 Oct 2008, at 12:23 PM, Alex Hamann wrote: > Hi, > > using today's nightly: > > > make a new bibliography > add these two items: > > @article{Featherstone:1987zr, > Author = {Featherstone, Kevin}, > Date-Added = {2008-10-05 12:16:31 +0200}, > Date-Modified = {2008-10-05 12:17:32 +0200}, > Pages = {6-7}, > Title = {PASOK and the Left}} > > @article{Morlino:1995ys, > Author = {Morlino, Leonardo}, > Date-Added = {2008-10-05 12:16:27 +0200}, > Date-Modified = {2008-10-05 12:17:26 +0200}, > Pages = {1-2}, > Title = {Political Parties and Democratic Consolidation in Southern > Europe}} > > open the find & replace window > do a find & replace operation in the field PAGES with a REG EXP > replacing (\d)\-(\d) with \1\--\2 (goal is to change the single > minus in the page range by a double one) > execute (either by "replace all" of by "find & replace") > the result will be to have the exactly identical page range with a > double minus in both entries, thus killing the correct information in > the respectively second entry > > Bug or me not using reg exps properly? > > Alex The second option. We're using Perl regexp, which uses $0, $1, $2, ... for placeholders rather than \0, \1, \2,... That has bit me several times as well ;-) Also, you may want to use (\d*) instead of (\d). Christiaan - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ___ Bibdesk-users mailing list Bibdesk-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bibdesk-users
[Bibdesk-users] bug in find & replace?
Hi, using today's nightly: make a new bibliography add these two items: @article{Featherstone:1987zr, Author = {Featherstone, Kevin}, Date-Added = {2008-10-05 12:16:31 +0200}, Date-Modified = {2008-10-05 12:17:32 +0200}, Pages = {6-7}, Title = {PASOK and the Left}} @article{Morlino:1995ys, Author = {Morlino, Leonardo}, Date-Added = {2008-10-05 12:16:27 +0200}, Date-Modified = {2008-10-05 12:17:26 +0200}, Pages = {1-2}, Title = {Political Parties and Democratic Consolidation in Southern Europe}} open the find & replace window do a find & replace operation in the field PAGES with a REG EXP replacing (\d)\-(\d) with \1\--\2 (goal is to change the single minus in the page range by a double one) execute (either by "replace all" of by "find & replace") the result will be to have the exactly identical page range with a double minus in both entries, thus killing the correct information in the respectively second entry Bug or me not using reg exps properly? Alex - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ___ Bibdesk-users mailing list Bibdesk-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bibdesk-users