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?
Announcement
Collapse
No announcement yet.
13298 Replacing entire line
Collapse
X
-
Originally posted by Aaron View PostNo. Text Replacements currently do not support matching on null or an empty line.
Originally posted by Aaron View PostThe only option is to define the line as Unimportant.Last edited by chrisjj; 19-Apr-2011, 08:51 PM.
Comment
-
Originally posted by chrisjj View PostThanks, but I don't want to match on
null or empty. I want to replace by null or empty.Last edited by Michael Bulgrien; 19-Apr-2011, 08:48 PM.BC v4.0.7 build 19761
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Comment
-
Originally posted by Michael Bulgrien View PostSince, 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.
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:
Aaron P Scooter Software
Comment
-
Originally posted by Aaron View PostSorry for the confusion. I'll rephrase. Text Replacements does not support declaring the "Replace With" section as null or empty.
Originally posted by Aaron View PostDefining a grammar as unimportant is a Session Setting. Defining the grammar itself is within the File Format.
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 Smit
Comment
Comment