Shouguang Cao wrote:
Now launch notepad++, copy/paste the text into a blank text file in notepad++.
I love this game.:Me encanta este juego.
I love regular expressions.:Me encantan las expresiones regulares.
Regular expressions are amazing.:Las expresiones regulares son asombrosas.
They do wonderful things.:Hacen cosas maravillosas.
(Spanish translation provided by Google Translate)
Use “CTRL+H” to open the search/replace dialog, and tick “Regular Expressions” under search mode section. Press CTRL+HOME to put your cursor at the beginning of the file.
Task one: You want to delete all the English source text. (Search for “.*:” and leave Replace With empty)
Task two: Or you want to delete all the Spanish text. (Search for “:.*” and leave Replace With empty)
Task three: Or you want to switch the position of “source:target” to “target:source”. (Search for “(.*):(.*)” and replace with “\2:\1”
I rarely apply the Regular Expression function. But I promote extensive use of it to enhance our productivity.
I am going to be 65 years old. This is why I need to move proactively.
Dr. Soonthon Lupkitaro