| User: balmaha -- 2013-01-24 << 1047 1049 >> |
| Hits: 3760 |
| Type: Regular expression replace |
| Search all Regular expression replace examples |
| Description: |
| 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="http://og.cc.strath.ac.uk/undergraduatecourses/science/bschonsbiochemistryandimmunology/">BSc Hons Biochemistry and Immunology</a></li> <li><a href="http://og.cc.strath.ac.uk/undergraduatecourses/science/bschonsbiochemistryandmicrobiology/">BSc Hons Biochemistry and Microbiology</a></li> |
| Output Sample: |
| <li><a href="http://og.cc.strath.ac.uk/undergraduatecourses/science/bschonsbiochemistryandimmunology/">Biochemistry and Immunology BSc Hons </a></li> <li><a href="http://og.cc.strath.ac.uk/undergraduatecourses/science/bschonsbiochemistryandmicrobiology/">Biochemistry and Microbiology BSc Hons </a></li> |
| Answer: |
| 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 |
| Keywords: |
| 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 |