Re: [Phpslash-devel] config.php vs. config-dist.php
Brought to you by:
joestewart,
nhruby
From: Luis M <le...@ho...> - 2003-03-08 20:04:36
|
<snip> >Another small issue - the poll list cache is not deleted when a new poll >is added. If someone would tell me a quick regex for "string contains poll >and not question_id" this would be fixed too. something like (in the same line "poll" exists, but not "question_id"): "/.*\bpoll\b.*[^question_id]/" <--- PCRE at least question_id is not matched... so it depends on what you are trying to do... search and replace? s/.*\bpoll\b.*\[^question_id\]//gc <--- delete all lines where string "poll" but not the sequence "question_id" exists.... this is Vim's version... you might want to try that a couple of times somewhere else before :-) my perl script find_replace.pl should do this nicely like: find_replace.pl ".*\bpoll\b.*[^question_id]" "" ".class" <--- in all .class files look for string in first argument and replace with second argument... to try it, without changing anything, use find_inline.pl first: find_infile.pl ".*\bpoll\b.*[^question_id]" ".class" <snip> ----)(----- Luis Mondesi System Administrator/Web developer LatinoMixed.com le...@ho... "Black holes are where God divided by zero" - Steven Wright Public signature: http://www.latinomixed.com/lems1/public-a.asc _________________________________________________________________ MSN Messenger : discutez en direct avec vos amis ! http://www.msn.fr/msger/default.asp |