Codefetch lets you combine three types of searches:
| Google-style | Enter words separated by spaces and they'll be found wherever they all appear on a page. |
| Full-text | Like a text editor, Codefetch can find $, {, % or any other ASCII symbol. |
| Regular Expression | You can even use a few regular expression constructs. See table below. |
| Surrounds with /b (word boundary regular expression) to avoid fetching compound words. | |
| Adds \s (white space regular expression) to fetch literally what you entered, spaces and all. |
Currently supported regular expression constructs:
| .* | Match any character or space or anything or nothing at all. |
| .+ | Match any character or space or anything (but not nothing--there has to be at least one char). |
| \d+ | Match one or more digits. |
| \s | Match one space or tab or other whitespace. |
| \s+ | Match one or more spaces or tabs or other whitespaces. |
| \b | Match a word boundary. |
Examples:
| foo\b | finds foo, tofoo, foo.lish but not foolish or fool_ish |
| foo bar | finds a page with "foolish" then "antibarista", one with "bar" then "foo", and others |
| foo\b bar\b | finds pages with both "foo" and "bar". Also matches "NotAFoo" and "rebar". |
| foo\s+bar | finds "foo bar" and "foo bar" but not "barfoo" or "bar foo". |
| foo.*bar | finds "foobar", "foo blah blah{}bar" but not "barfoo" |
| port.+\d+ | finds lines with "port" and any number of digits following it anywhere on the same line. |
| <!--.*servers | finds "servers" anywhere in an xml comment line. |
| KEY.*(.*,.*) | In SQL, finds examples of multiple keys. |
Find out about new features:
| Codefetch Blog |