copy patern paste as new line

Get help with installation and running here.

Moderators: DataMystic Support, Moderators

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

copy patern paste as new line

Postby jane98 » Tue Dec 29, 2015 1:11 pm

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: 2136
Joined: Mon Jun 30, 2003 12:32 pm
Location: Melbourne, Australia
Contact:

Re: copy patern paste as new line

Postby DataMystic Support » Wed Dec 30, 2015 9:37 pm

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 38 times
Regards,

Simon Carter, http://DataMystic.com/forums/index.php
http://PredictBGL.com - Insulin dose calculator for Type 1 diabetes
http://DownloadPipe.com - 250,000 free software downloads
http://DetachPipe.com - send huge email attachments

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

Re: copy patern paste as new line

Postby jane98 » Thu Dec 31, 2015 8:29 pm

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: 2136
Joined: Mon Jun 30, 2003 12:32 pm
Location: Melbourne, Australia
Contact:

Re: copy patern paste as new line

Postby DataMystic Support » Fri Jan 01, 2016 7:24 pm

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
Regards,

Simon Carter, http://DataMystic.com/forums/index.php
http://PredictBGL.com - Insulin dose calculator for Type 1 diabetes
http://DownloadPipe.com - 250,000 free software downloads
http://DetachPipe.com - send huge email attachments


Return to “TextPipe Tips and Tricks, Questions and Support”

Who is online

Users browsing this forum: No registered users and 1 guest