Note To Self; This part of the string should not be changed because it contains note to self and NTS
Note To Self ; This part of the string should not be changed because it contains note to self and NTS
Note To Self : This part of the string should not be changed because it contains note to self and NTS
Note To Self: This part of the string should not be changed because it contains note to self and NTS
Note To Self - This part of the string should not be changed because it contains note to self and NTS
Note To Self- This part of the string should not be changed because it contains note to self and NTS
Note To Self This part of the string should not be changed because it contains note to self and NTS
NTS ; This part of the string should not be changed because it contains note to self and NTS
NTS; This part of the string should not be changed because it contains note to self and NTS
NTS : This part of the string should not be changed because it contains note to self and NTS
NTS: This part of the string should not be changed because it contains note to self and NTS
NTS- This part of the string should not be changed because it contains note to self and NTS
NTS - This part of the string should not be changed because it contains note to self and NTS
NTS This part of the string should not be changed because it contains note to self and NTS
This part of the string should not be changed because it contains note to self and NTS #NTS
Above is the text I am using to test my regex.
I am using this with PHP, and am just trying to extract the string without the prefix.
Essentially, what I am looking for is extracting this string ‘This part of the string should not be changed because it contains note to self and NTS’ from the given prefixes.
Your help is much appreciated, thanks!
EDIT: by request info was changed.
To remove all instances of
Note to selforNTSif they are at the start of the line, optionally followed by whitespace and/or punctuation, and to remove#NTSif it’s at the end of a line, you can search forand replace with nothing.
Explanation in the form of a PHP code snippet: