1

I need a regular expression that matchs all whitespaces between block of characters. Block example:

500 dfdsfsd     fdsfdsfdsf  9876dfsdfs  df7687

I only know about /\s+/ , but it matches only the first whitespace block.. I want to get whitespace, ignore block of characters, get whitespace ... so on enter image description here

Okeano
  • 108
  • 1
  • 8
Eduardo Humberto
  • 425
  • 2
  • 5
  • 16

1 Answers1

-1

If you apply the Regex Flag global to your regex expression, you will get all whitespace blocks.

Regex Expression: \s+/g

Demo

Okeano
  • 108
  • 1
  • 8
  • On Dataprep you have to add the tag `global: true` to your transformation and use `\s+` as your regex expression. [Global-Parameter](https://cloud.google.com/dataprep/docs/html/global-Parameter_57345016?hl=en) – Okeano Feb 21 '19 at 20:54