Replace part of word with regexp

Need to replace “replaceString” inside words, but it must not starting with “@”. For example:

replaceString - replaced to : replacedString
abc.replaceString - replaced to : abc.replacedString
abc.@replaceString - NOT replaced

Im trying to use something like @”(?!@)replaceString$”, but it not working properly.

Source: regex

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.