Hello
I was just wandering if its possible to insert a line at the Beginning and the End of the file without replacing it with other lines?
Thank you in advance for any help in this matter.
just insert text without replacement
- DigitalVolcano
- Site Admin
- Posts: 1863
- Joined: Thu Jun 09, 2011 10:04 am
Re: just insert text without replacement
You can use the regular expressions ^ and $ to insert at the the beginning or end of a file. Make sure Multi-line anchors is turned off.
So to insert a line at the start of a file:
RegEx:
^
Replace:
This is a new line\r\n
Try it in the RegEx tester.
So to insert a line at the start of a file:
RegEx:
^
Replace:
This is a new line\r\n
Try it in the RegEx tester.
Re: just insert text without replacement
thank you so much