I have a regular expression question. Suppose I have this line
"She gained about 55 pounds in...9 months. She was like an eating machine. "Trump, a man who wants to be president: "
I want to remove every empty space for the period and before the symbol "and delete the symbol"
For example, this part of the sentence
She was like an eating machine. "Trump, a man who wants to be president:
should become
She was like an eating machine.Trump, a man who wants to be president: "
Thanks guys, regex isn't easy to find out. Appreciate any help! so far ps I am using R software, but I think it doesn’t matter, since regex works in every programming language
UPDATE
I solved my problem and I would like to share it, maybe it can help someone else. I have this dataset downloaded from kaggle about trump card and tweets.
Knime ( ).
, gsub. , , , csv R UTF-8. , Knime