โ05-23-2022 07:05 AM
Hi, I am trying to replace the words that starts with โAuftโ because somehow it changes the next two characters by ๏ฟฝ๏ฟฝ
Image Below:
Iโm not a professional in regex expressions so I am trying to learn it but I canโt come up with the solution. I always taught you could do $title.replaceAll(โAuftโ.*, โAuftraggeโ)
โ05-23-2022 07:10 AM
replaceAll() is expecting a string literal, so it is looking for a period and asterisk to follow Auft.
I think what you want is the replace() method using an expression. This would be something like the following:
$title.replace(/Auft.*/g, 'Auftragge')