Remove the first space

Hi @Banksy,

When you say “remove the first space of the string”, I am assuming you mean the first space, whereever it appears (i.e. not just if it is the first character of the string).

If that interpretation is correct, then I think this regex replacement should do the job.

Configure String Replacer as follows:

Pattern:
([^ ]*)[ ](.*)

Replacement text:
$1$2

This “captures” everything that isn’t a space up to (but not including) the first space, and returns it ‘$1’, then ignores a space and then returns everything following that space `$2’

image

3 Likes