S
sb
Hello,
I have a text file which contains plain text with the normal
carriage-return/linefeed line terminators. With that file I want to find
any occurence of "%R" (case-sensitive) on any line that does _not_ start
with "#"....so that I can replace it with something else later using
Regex.Replace().
An example file would look something like this (the real file is
~100kb..several hundred lines):
--- start of file ---
# description line...if there are any %R's on this line, ignore them\r\n
hey %Rthere\r\n
how's it %Rgoin?\r\n
%Rfine, you?\r\n
--- end of file ---
In the above, the regular expression should match all occurences of %R
except the one on the line that starts with "#". Can someone tell me what
the right regex search string would be? I'm sure this is very easy to do
but I'm still a newbie to regex.
Thanks in advance!
sb
I have a text file which contains plain text with the normal
carriage-return/linefeed line terminators. With that file I want to find
any occurence of "%R" (case-sensitive) on any line that does _not_ start
with "#"....so that I can replace it with something else later using
Regex.Replace().
An example file would look something like this (the real file is
~100kb..several hundred lines):
--- start of file ---
# description line...if there are any %R's on this line, ignore them\r\n
hey %Rthere\r\n
how's it %Rgoin?\r\n
%Rfine, you?\r\n
--- end of file ---
In the above, the regular expression should match all occurences of %R
except the one on the line that starts with "#". Can someone tell me what
the right regex search string would be? I'm sure this is very easy to do
but I'm still a newbie to regex.
Thanks in advance!
sb