Solved

Remove space between numbers and letter in a column

  • 21 October 2022
  • 2 replies
  • 3 views

Badge +6

I have a mix column that contains numbers and letters. in some records the first value or two first values ​​are number and then is a space then comes letter. the space und letter don't appear in all records. if a record contains this space I want to remove the space between number and letter.

For example : 2 a -> 2a oder 22 a -> 22a.

 

 

 

icon

Best answer by ebygomm 21 October 2022, 10:49

View original

2 replies

Userlevel 1
Badge +21

This regex will match any space preceded by a number and followed by a letter. 

(?<=\d)\s(?=[a-zA-Z])

If you use it in a StringReplacer with ReplacementText of nothing you should get the result you are after

 

Badge +6

This regex will match any space preceded by a number and followed by a letter. 

(?<=\d)\s(?=[a-zA-Z])

If you use it in a StringReplacer with ReplacementText of nothing you should get the result you are after

 

Thanks alot 🙂

Reply