Project

General

Profile

« Previous | Next » 

Revision 13077

bin/repl: match as whole-word text (like SQL identifier): documented that this is a generalization of lib/sql_gen.py map_expr() to work on entire source files

View differences:

trunk/bin/repl
59 59
            if text or is_word: # match as whole-word text (like SQL identifier)
60 60
                # this can also be done in Postgres with expression substitution
61 61
                # (wiki.vegpath.org/Postgres_queries#expression-substitution)
62
                # this is a generalization of lib/sql_gen.py map_expr() to work
63
                # on entire source files
62 64
                in_str_re = re.escape(in_)
63 65
                q = quote_re
64 66
                in_ = '(?<='+q+')'+in_str_re+'(?='+q+')' # require quotes

Also available in: Unified diff