I have these html title tags with titles separated by some : (maybe two or three or four, or whatever), and I need to reverse their order like the following example:
<title>text1: text2: text3: text4 | sitename</title>
sometimes they are more or less : I mean more or less only text1, 2 ,3 or more than text4 separated by :
output:
text4: text3: text2: text1 | sitename
P.S. I use notepad++ and I need to edit this in bulk for many files..
Thanks,
This is possible via Notepad++ (I’m using version 6.1.2) but it’s not very pretty…
Using regular expression find replace you can do the following…
Find:
Replace:
BUT it comes with a warning. This assumes that your list of :textA items will never be longer than 11 instances.