![]() To change the contents of the LAST line, ONLY, of the current file, which contains the string, use :.To change the contents of the FIRST line, ONLY, of the current file, which contains the string, use :.I, also, supposed, Vasile, that the line, containing your string, may have some characters before and/or after that specific string. I’ve got a solution, based on the one I gave in my last post, on the topic : Regex : Double your words, below, where I also matched all the remaining contents of the file, in order to be certain that will be ONE replacement, only, per file !
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |