Tuesday, 6 December 2016

How to remove empty lines in text In Visual

Visual Studio has ability to delete empty lines in replace operation using regular expressions.
  • Click Ctrl-H (quick replace)
  • Tick "Use Regular Expressions"
  • In Find specify ^$\n
  • In Replace box delete everything.
  • Click "Replace All"
All empty lines will be deleted.
Regular expression for empty line consist of
Beginning of line ^
End of line $
Line break \n

No comments:

Post a Comment

Excel read, Two days different in Python

Program: import pandas as pd df = pd.read_excel('CompleteData2.xlsx', sheet_name='Test') df.DOA = pd.to_datetime(df[...