Ich versuche, die Zeichenfolge ab * und endend auf * mit der Match-Funktion zu bekommen. Ich bekomme ein Array von Strings nicht eine Zeichenfolge. Mein Code istWie bekomme ich eine Zeichenfolge mit Match-Funktion in Javascript
Str="==Quotes==* We thought that he was going to be -- I shouldn't say this at Christmastime -- but the next messiah.** On [[Barack Obama]]"
regE=/\* \w*/gi
newArr=str.match(regE)
console.log(newArr)
Spiel Sie alle Spiele gibt, was hast du erwartet? – Li357
'regE = /\*(.*?)\*/; newArr = str.match (regE); console.log (neuArr [1]) ' –