#1 : 09/02-17 14:06 Harry
Posts: 2
|
It should somehow be possible to use the text between two specified strings, eg. between certain HTML tags.
Best would be to be able to specify a starting and ending code, so that AdvancedRenamer will take the part between those two. Is or will this be possible? |
#2 : 11/02-17 12:44 Aaron
Posts: 11
|
Reply to #1:
What exactly are you trying to do ? Your question is confusing because filenames usually don't include html tags ... If you're looking to find a certain string in a textfile, you're using the wrong tool ... |
#3 : 12/02-17 00:38 G. Lambany
Posts: 187
|
Reply to #1:
I agree with Aaron, please explain in more details what you are trying to achieve. If you want to convert a list of files scattered in an html file, then you can probably use regex with notepad++ with the html source to generate a clean list of files, and then paste that into a list method in AR, but again, I'm not sure this is what you want to do. cheers |
#4 : 20/02-17 10:31 Harry
Posts: 2
|
Sorry, let me explain:
I have HTML files that I want to rename based on its content, like this one: http://www.kerkrecht.nl/book/export/html/1715 I want to do this based on line 17 of every file, which reads like this: <div class="field field-name-field-auteur field-type-taxonomy-term-reference field-label-hidden view-mode-print"><ul class="field-items"><li class="field-item even"><a href="/personen/kamphuis-j" typeof="skos:Concept" property="rdfs:label skos:prefLabel" datatype="">Kamphuis, J.</a></li></ul></div><div class="field field-name-field-boek-weergave-titel field-type-text field-label-hidden view-mode-print"><div class="field-items"><div class="field-item even">Om de heiligheid van de gemeente</div></div></div><div class="field field-name-field-boek-weergave-ondertitel field-type-text field-label-hidden view-mode-print"><div class="field-items"><div class="field-item even">De kerkelijke tucht</div></div></div><div class="field field-name-field-boek-plaats field-type-text field-label-hidden view-mode-print"><div class="field-items"><div class="field-item even">Kampen</div></div></div><div class="field field-name-field-boek-uitgever field-type-text field-label-hidden view-mode-print"><div class="field-items"><div class="field-item even">Copiëerinrichting van den Berg</div></div></div><div class="field field-name-field-boek-jaar field-type-datetime field-label-hidden view-mode-print"><div class="field-items"><div class="field-item even"><span class="date-display-single" property="dc:date" datatype="xsd:dateTime" content="1982-01-01T00:00:00+01:00">1982</span></div></div></div><section class="field field-name-field-boek-isbn field-type-text field-label-inline clearfix view-mode-print"><h2 class="field-label">ISBN: </h2><div class="field-items"><div class="field-item even">90-6651-003-x</div></div></section> <div id="node-1716" class="section-2"> So I want to have the HTML file renamed using 4 parts of this content (in line 17 of the file) to: Kamphuis, J. - Om de heiligheid van de gemeente. De kerkelijke tucht (1982).html I didn't manage to do this with regex yet... is someone able to achieve this? It would help a TON! |