VS Code Tips: regex select entire line starting with..

Join the AI Workshop to learn more about AI and how it can be applied to web development. Next cohort February 1st, 2026

The AI-first Web Development BOOTCAMP cohort starts February 24th, 2026. 10 weeks of intensive training and hands-on projects.


Had a bunch of markdown files with a frontmatter property I didn’t need any more, so I used this search expression in VS Code with regex enabled to find all lines starting with booktitle: and removed the entire line using replace with an empty string:


^booktitle:.*

Lessons in this unit:

0: Introduction
1: Setup and Configuration Tips
2: Terminal Tips
3: Editing Tips
4: Prettier and Auto-Formatting
5: Language-Specific Settings
6: Emmet for Faster HTML/CSS
7: Debugging in VS Code
8: Fix node modules import errors in VS Code
9: Fixing TS issues in VS Code - Astro
10: ▶︎ regex select entire line starting with..