Add a character to the beginning and end of a string July 29, 2023 by Tarik You don’t need a regular expression. str = "123456789"; str = "'" + str + "'";