Space Removal

How to find this variable?

This kind of text with extra spaces often comes from scraped LinkedIn data, where formatting might not be consistent.

How to use it?

Apply the regex /\\s\\s+/g to streamline the formatting of text from LinkedIn profiles, making it more presentable for use in cold outreach emails or messages.

Use cases

Cold Outreach: Clean up LinkedIn data before using it in outreach emails to maintain professionalism.

CRM Updates: Tidy up contact details before uploading them to a CRM system to ensure data quality.

Networking Communications: Use cleaned data for clearer and more effective networking messages on professional platforms like LinkedIn.

The prompt

Apply the regex (/\s\s+/g, ' ') to clean up the input {{variable}} by replacing all occurrences of multiple spaces with a single space.

copy prompt

Your input

Apply the regex (/\s\s+/g, ' ') to clean up the input {{company.Description}} by replacing all occurrences of multiple spaces with a single space.


Apply the regex (/\s\s+/g, ' ') to clean up the input Our company   develops   innovative   cloud-based   solutions   that    empower businesses to operate more    efficiently. by replacing all occurrences of multiple spaces with a single space.

Your output

Our company develops innovative cloud-based solutions that empower businesses to operate more efficiently.

How to implement

1
Step 1: Open your “Lead list” in your lemlist campaign.
2
Step 2: Create a new column and select “Create AI column”. Enter the name of your AI variable and click “Save”.
3
Step 3: Paste the prompt and click “Generate”!
Use this prompt in lemlist
Copy this prompt to the clipboard
Why this prompt?
Use a regular expression to clean multiple spaces with a single space

Related Prompts

Behavior Signals

Perplexity - What is the most recent feature added

What is the most recent feature added by a company
sales
Sales teams
Behavior Signals

Perplexity - which VCs backed a company

Find which VCs have backed a company
founders
Founders & CEOs
Behavior Signals

Recent market reports published

Create catchy messages using new market report insights.
investment
Finance & Investment (VCs, wealth management)

How to leverage the full power of prompts with lemlist AI variables

1

Generate an AI variable from leads

Top 1% sales reps use this AI-powered workflow to automate outreach and book meetings effortlessly.
2

Analyze & sort with AI

Add your prompt or choose the best-performing ones from the library, without leaving the lemlist app.
3

Get clean & segmented info

Segment leads for ultra-targeted approach, craft personalized icebreakers, and clean messy copies.

“Emails generated are short and respect copywriting standards. The AI did some research to add relevant content to the messaging!”

Philippe Araba
Business Developer @Shortways

“The process was very simple, and I like the scripts proposed!”

Lucia Lehmann
Sales Manager @Inside Sales

“Amazing! Especially for a dinosaur in tech like me, it’s magical! Got a full personalized sequence only after 3 minutes!“

Nadja El Fertasi
Consultancy @Thrive with EQ

"Huge time saver - it saves us between 5 and 8 minutes to create personalization per each lead."

Ali Rahmani
Co-Founder @Tango Prospection

"I find the results quite impressive. I only spend a little bit of time to tweak the final copy."

Arnaud Renoux
Founder @The Scalelab