Loading ...
Sorry, an error occurred while loading the content.

49810regex: multiline search limited to blocks

Expand Messages
  • Hari Krishna Dara
    May 3, 2004
      While searching for queries in Oracle (pl/sql), I use the \_[^;] atom to
      limit the multi-line search to one statement, and it works remarkably
      well in most of the cases. E.g.:


      Unfortunately, MSSQL doesn't enforce a statement terminator (t-sql), so
      the best I can do is assume that a statement is one block of lines
      (containing no empty lines), so limit the search to the block. Now can
      anyone help me create a regex for this? I presume I need to somehow
      avoid \_$ appearing right after \_^ (with optional whitespace in
      between), but I can't figureout how to express this.

      Thanks a lot,

      Do you Yahoo!?
      Win a $20,000 Career Makeover at Yahoo! HotJobs
    • Show all 6 messages in this topic