~/talk

Three indispensable REGEX hacks

Talkat satRday Johannesburg 2019 · on Saturday, 2019-04-06· [developer-experience]
slides:none on file

Three practical regex techniques and a working pattern for the example file set are given: use ^ and $ as anchors to force full-string matches, use grouping and alternation like \.(csv|ods) to match extensions literally (escape the dot), and use character classes with quantifiers like [A-Za-z] to allow any mixed-case name. Concrete pattern for files starting with project and an underscore or dash is ^[Pp]roject[_-][A-Za-z]*\.(csv|ods)$ which matches only project_foo.csv or project-bar.

AI-written summary · about

  1. 0:00Start
  2. 0:27Vanilla Search
  3. 1:23Carets and Dollars - and
  4. 1:58Groups and Pipes - () and
  5. 2:31Square brackets and Asterisks - [ ] and
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.