1. ctrl-o open source file 2. ctrl-h open 'Replace' dialog in 'Replace' page * set 'Replace Scope' to 'Line' * set 'Search for pattern': * set 'Replace with pattern': * uncheck '[ ]Print unmatched unit' option 3. click 'Replace', ok! Note: chars($match,6,-4) means remove the first 5(start) and last 3(end) characters, only keep the 6th to -4th chars. |