Love2Vec

Mastering Regex in Love2Vec

Regular Expressions (Regex) are the secret superpower of site architecture. Because enterprise websites contain thousands of URLs, analyzing the entire matrix at once creates noise. Regex lets you isolate, filter, and sculpt your vector topology with algorithmic precision.

💡 Layman’s Analogy: Think of Regex as a supercharged "Search & Find". Instead of searching for one exact word, you give Love2Vec a pattern rule (e.g., "Find any URL that contains the word '/blog/' AND ends with a number").

1. The 5 Symbols You Need to Know

You don't need a computer science degree to use Regex in Love2Vec. 99% of all SEO tasks rely on these five simple symbols:

Symbol Name What It Means Example
| Pipe (OR) Matches item A OR item B /blog/|/news/
^ Caret Must start at the beginning of the string ^https://
$ Dollar Must end at the exact end of the string /product$
.* Wildcard Match anything in between /category/.*\/item/
? Escape / Optional Prevents special characters (like ?) from breaking \?utm_source

2. Plug & Play SEO Recipes

Click any pattern to copy it directly into your Include/Exclude fields in Love2Vec tools.

Isolate a Specific Silo
/blog/
Only includes pages inside the blog folder. Ignores product pages, legal links, and the homepage.
Multiple Sections (OR Logic)
/products/|/services/
Combines your products and services folders while hiding blogs and author archives.
Filter Out URL Parameters
\?
Place this in the Exclude Regex field to strip tracking tags (?utm=), sorting filters, and search parameters.
Ignore Common Image/File Types
\.(pdf|jpg|png|webp)
Place in Exclude Regex to prevent non-HTML static assets from diluting your vector space.
Ignore Paginated Archives
/page/|/category/|/tag/
Prevents WordPress archive pages and paginated loops from flagging false-positive content gaps.
Target Specific Regional Folders
/(us|uk|ca)/
Isolates multi-regional subdirectories so you can compare localized sub-folders individually.

3. Where to Use Regex in Love2Vec

A. 3D Visualizer & Node Highlighter

Inside the 3D Graph, use the Node Highlighter tool to paint specific subdirectories in custom colors. For example, typing /pricing/ with a bright pink color highlight will instantly show you where your conversion pages live inside the latent vector cloud.

B. Content Cannibalization Matrix

To avoid cluttering your analysis with blog overlap, set the Include Regex to /services/. This forces the AI to only check for semantic keyword collisions between your highest-value money pages.

C. Thematic Gap Analysis

When running a gap analysis against a competitor, place /author/|/tag/|/category/ in the Exclude Regex field. This stops the LLM from suggesting missing WordPress tag archives as "new content ideas."

D. Meta Title & Description Rewriter

Need to rewrite titles for your e-commerce products without touching blog posts? Simply set the Include Regex filter to /shop/ or /product/ to batch-generate metadata for specific silos.