regexThu, 02 Mar 2023

How to remove all white space and space symbols from the beginning or end of a string?

/\s+$/gm

Questions about programming?Chat with your personal AI assistant