Replacing with a newline ignores Selected Text setting. Bug?
Posted: Tue Jun 19, 2007 11:33 am
I wanted to put a newline after each comma within just the first pair of parentheses of the following:
Thus I selected the text within just the first pair of parentheses, and in the Replace dialog I put , into the "Find what" field, ,\n into the "Replace with", chose Regular expression and Selected text and clicked Replace All.
What I expected was the following:
However, what I actually got was this:
So it seems that if you have a newline in the "Replace with", the "Selected text" option is ignored. Is this a bug?
I'm using 5.0.3 on Win2K (SP4).
Code: Select all
INSERT INTO SourceDocumentClauses (SourceClauseId, SourceDocumentId, SourceClauseReference, SourceClauseDescription, SourceClauseText, FunctionalGroupId, AssociatedTwiClause, SortNumber, CreatedTimestamp, CreatedBy, LastModifiedTimestamp, LastModifiedBy) VALUES (76, 1, 'xdf435w', 'dsrgs5', 'stuff', , 'U', '1.444', '19/06/2007 11:52:43', 'Supervisor', '19/06/2007 11:52:43', 'Supervisor')What I expected was the following:
Code: Select all
INSERT INTO SourceDocumentClauses (SourceClauseId,
SourceDocumentId,
SourceClauseReference,
SourceClauseDescription,
SourceClauseText,
FunctionalGroupId,
AssociatedTwiClause,
SortNumber,
CreatedTimestamp,
CreatedBy,
LastModifiedTimestamp,
LastModifiedBy) VALUES (76, 1, 'xdf435w', 'dsrgs5', 'stuff', , 'U', '1.444', '19/06/2007 11:52:43', 'Supervisor', '19/06/2007 11:52:43', 'Supervisor')Code: Select all
INSERT INTO SourceDocumentClauses (SourceClauseId,
SourceDocumentId,
SourceClauseReference,
SourceClauseDescription,
SourceClauseText,
FunctionalGroupId,
AssociatedTwiClause,
SortNumber,
CreatedTimestamp,
CreatedBy,
LastModifiedTimestamp,
LastModifiedBy) VALUES (76,
1,
'xdf435w',
'dsrgs5',
'stuff',
,
'U',
'1.444',
'19/06/2007 11:52:43',
'Supervisor',
'19/06/2007 11:52:43',
'Supervisor')I'm using 5.0.3 on Win2K (SP4).