Jump to content

Rmela

Members
  • Posts

    1
  • Joined

  • Last visited

Rmela's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. I need to clear the whole line where a certain string is found, until the carriage return. var LineStr = "* What a beautiful day\n"; var ResultingEmptyLine = preg_replace('/* What[\s\S]+?day\n', '', LineStr); The code below does not work. Any suggestion? If there is no way of doing this, how could I then delete all characters present between "* What" and the NEXT "*" (assuming that there are many statements in the textbox area as a bulletpoint list with "*").
×
×
  • Create New...