I want to make a Replacement of an entire line with null so that the line is excluded from comparison. The dialog refuses the obvious way - OK is disabled. Is there some trick with the regexp that does this?
13298 Replacing entire line
Collapse
X
-
How may I do that from the Session Settings?Last edited by chrisjj; 19-Apr-2011, 07:51 PM.Comment
-
Since, by design, replacements in BC3 define what one side should look like for the purpose of matching it to the other side, replacing by null or empty does equate to matching on null or empty.Last edited by Michael Bulgrien; 19-Apr-2011, 07:48 PM.BC v4.0.7 build 19761
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯Comment
-
I took matching to refer to the matching operation within the Replacement rather than the comparison.Comment
-
Sorry for the confusion. I'll rephrase. Text Replacements does not support declaring the "Replace With" section as null or empty. There must be text defined for the "Text to find" to be "Replace(d) With".
Defining a grammar as unimportant is a Session Setting. Defining the grammar itself is within the File Format. The guide to define unimportant text is found here:
http://www.scootersoftware.com/suppo..._unimportantv3Aaron P Scooter SoftwareComment
-
Thanks again.Comment
-
Hi BC Team
I have exactly the same need: "...make a Replacement of an entire line with null so that the line is excluded from comparison"
Such an enhancement will speed up my code propagation tasks.
BTW, thanks a lot for a great and valuable application!
Regards
Kobus SmitComment
Comment