Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

1048.Regular expression replace -- How to move some words from start of line to specified location in html file?

User: balmaha -- 2013-01-24          << 1047  1049 >>
Hits: 1385
Type: Regular expression replace   
Search all Regular expression replace examples
I have a html file and I want to move string(BSc Hons) from start of line to just before </a>, is this possible?
Input Sample:
<li><a href="">BSc Hons Biochemistry and Immunology</a></li>
<li><a href="">BSc Hons Biochemistry and Microbiology</a></li>
Output Sample:
<li><a href="">Biochemistry and Immunology BSc Hons </a></li>
<li><a href="">Biochemistry and Microbiology BSc Hons </a></li>
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps.
1. ctrl-o open text file
2. ctrl-h open 'replace' dialogue
* set 'search for pattern' to:

* set 'replace with pattern' to:

3. click 'replace', done.

Screenshot 1:  Replace_Window

Similar Examples:
How to extract all specified links from a html file? (65%)
How to extract all lines with specified date range from text file? (63%)
How to change columns in each line to specified order in text file? (63%)
How to change the number in each line to specified order in a text file? (62%)
How to add a space at the specific location of each line? (62%)
How to remove everything after specified strings in text files? (61%)
How to search and sum the numbers at specified position in a text file? (60%)
How to insert a line after specific lines in a text file? (60%)

Check Demo of Regular expression replace
move string  before  bef  befor  string  regular expression  expression  specified  start of line  regular  1 13  move words  replace before line  line before  specified words  text before  replace before  replace in specified line