regexWed, 01 Mar 2023

how trim and remove all symbols and whitespaces from start and end

/^[\s\W]*|[\s\W]*$/

Questions about programming?Chat with your personal AI assistant