notepad++ copy characters on every line and add to the end of every line -
i have list this:
abc+133346thr+end abc+sdf465768+end abc+645646rte+end abc+564886rjrt+end abc+464686fnfg+end abc+5468466mfytr+end
and want copy characters in middle of each line , paste on end of each lines, become this:
abc+133346thr+end+133346thr abc+sdf465768+end+sdf465768 abc+645646rte+end+645646rte abc+564886rjrt+end+564886rjrt abc+464686fnfg+end+464686fnfg abc+5468466mfytr+end+5468466mfytr
how notepad++ ?
thank answering, got case still in same topic, more complicated.
here is:
<a href="http://domain.com/wp-content/uploads/2013/05/1080p-car-1024x640.jpg" target="_blank"><img src="http:// <a href="http://domain.com/content/images/2013/05/1080p-wall-1080x675-1024x640.jpg" target="_blank"><img src="http:// <a href="http://domain.com/content/images/2013/05/1080p-apers-1080x675-150x150.jpg" target="_blank"><img src="http://
and want make this:
<a href="http://domain.com/wp-content/uploads/2013/05/1080p-car-1024x640.jpg" target="_blank"><img src="http://domain.com/wp-content/uploads/2013/05/1080p-car-1024x640.jpg <a href="http://domain.com/content/images/2013/05/1080p-wall-1080x675-1024x640.jpg" target="_blank"><img src="http://domain.com/content/images/2013/05/1080p-wall-1080x675-1024x640.jpg <a href="http://domain.com/content/images/2013/05/1080p-apes-1080x675-150x150.jpg" target="_blank"><img src="http://http://domain.com/content/images/2013/05/1080p-apes-1080x675-150x150.jpg
i tried use punctuation gave on find what, not accepted notepad++ , tell me no characters found.
can still done notepad++?
thanks
use find , replace , click "regular expression" checkbox
find what:
abc\+(.*)\+end
replace with:
abc+\1+end+\1
if don't know regular expressions should learn - useful. there lots of sites have tutorials. basically:
in find what: part:
- abc matches letters verbatim + signs must escapred because mean special in regular expression if want match actual + sign need search +
- anything surrounded () saved in \1 variable (called backreference) used later in replace.
- a . means match character if want match actual . yuou need . want match character. * means 0 or more of previous thing .* means bunch of character.
so abc+(.*)+end means abc followed actual + followed bunch of followed actual + followed end, "bunch of stored in \1
in replace with: part actual characters except \1 stuff saved, abc+\1+end+\1 means replace matched abc+ followed saved part followed +end+ followed
Comments
Post a Comment