copy patern paste as new line

Get help with installation and running here.

Moderators: DataMystic Support, Moderators, DataMystic Support, Moderators, DataMystic Support, Moderators

Post Reply
jane98
Posts: 2
Joined: Tue Dec 29, 2015 12:50 pm

copy patern paste as new line

Post by jane98 »

Hello, thank you for reading this. I need some help regarding this data:

Code: Select all

@article{suzuki_importance_2014,
	title = {The {Importance} of the {Individual} {Adjustments} in {Sound} {Therapy}},
	url = {http://oto.sagepub.com/content/151/1_suppl/P210.1},
	author = {Suzuki, Flavia A. B. and Suzuki, Fabio A. and Yonamine, Fernando K. and Onishi, Ektor T. and Penido, Norma O.},
	month = sep,
	year = {2014},
	pages = {P210--P210},
}
i want to create a new line of text using data from line url adding

Code: Select all

file = {Snapshot:Z\:\\
and at the end of the line

Code: Select all

:text/html}
also change from / to \ of the url data

file = {Snapshot:Z\:\\oto.sagepub.com\content\151\1_suppl\P210.1:text/html}

the end result should be

Code: Select all

@article{suzuki_importance_2014,
	title = {The {Importance} of the {Individual} {Adjustments} in {Sound} {Therapy}},
	url = {http://oto.sagepub.com/content/151/1_suppl/P210.1},
	author = {Suzuki, Flavia A. B. and Suzuki, Fabio A. and Yonamine, Fernando K. and Onishi, Ektor T. and Penido, Norma O.},
	month = sep,
	year = {2014},
	pages = {P210--P210},
	file = {Snapshot:Z\:\\oto.sagepub.com\content\151\1_suppl\P210.1:text/html}
}
sincerely
jane98/hasbullah
User avatar
DataMystic Support
Site Admin
Posts: 2227
Joined: Mon Jun 30, 2003 12:32 pm
Location: Melbourne, Australia
Contact:

Re: copy patern paste as new line

Post by DataMystic Support »

Please find a solution attached.

This makes perfect use of TextPipe's restrictions, and also of EasyPattern regex.
Attachments
extract article text.rar
(1.69 KiB) Downloaded 406 times
jane98
Posts: 2
Joined: Tue Dec 29, 2015 12:50 pm

Re: copy patern paste as new line

Post by jane98 »

thank you for the reply. I am not very good at coding. I have just tested the solution given but missing some line.

the output comes out

Code: Select all

@article{suzuki_importance_2014,
   title = {The {Importance} of the {Individual} {Adjustments} in {Sound} {Therapy}},
   /oto.sagepub.com/content/151/1_suppl/P210.1
   author = {Suzuki, Flavia A. B. and Suzuki, Fabio A. and Yonamine, Fernando K. and Onishi, Ektor T. and Penido, Norma O.},
   month = sep,
   year = {2014},
   pages = {P210--P210},
   file = {Snapshot:Z\:\\oto.sagepub.com\content\151\1_suppl\P210.1:text\html}
}
it seems the url line is not properly listed. supposed:

Code: Select all

url = {http://oto.sagepub.com/content/151/1_suppl/P210.1},
not

Code: Select all

 /oto.sagepub.com/content/151/1_suppl/P210.1
how can I properly insert the missing tag?

thank you for reading,
User avatar
DataMystic Support
Site Admin
Posts: 2227
Joined: Mon Jun 30, 2003 12:32 pm
Location: Melbourne, Australia
Contact:

Re: copy patern paste as new line

Post by DataMystic Support »

Hi Jane,

Happy to help with this extra requirement if you can jump online and purchase TextPipe - http://www.datamystic.com/buy/textpipestandard

Happy New Year!

Simon
Post Reply