Im trying to replace this @Model.<A Word>
to $Model.<A Word>$
so, @Model.Test
would become $Model.Test$
While searching SO, i found this thread
Which the answer worked.. until I had to replace one in this sentence
Élément @Model.Title a besoin d'être\napprouvé
Modifying the answer slightly to : @Model\.((?:(?![ ]).)*)
Results with
Élément $Model.Title a$ besoin d'être\napprouvé
I want the $ to be just after Title -> $Model.Title$
Any help would be appreciated - I'm quite new to regex.