KWICis demo of plaintext and regular expression model

© 2014-2015 Chris Culy

The preloaded text is from Robin Hood by Howard Pyle. You can start searching it now, using regular expressions. Note that all matching substrings will be found, not just whole words. You can load other plain text files. For an example with structured text see Structured text and regular expressions

  1. You can try using \s (whitespace) to indicate a word boundary and \S (not whitespace) to limit searches to words. For example, to find words starting and ending with d use \sd\S+d\s.
  2. Regular expressions are by default case sensitive. To do a case insensitive search, put the expression between // and add i after them. For example, to look for both How and how as words, enter: /\show\s/i
  3. The * and + regular expression operations will normally find their longest matches. To find the shortest matches, use *? and +?.
  4. The regular expression . will not match a new line, but [^] will. For example, ,[^]+?, will find the shortest sequences between two commas, even ones the go across the ends of lines.
Input file: or from history


Click on a column heading to sort it, or reverse its sort. Click on a hit to see the hit in a fuller context. Click on any other item to reset the KWIC to the results for that item.