Hi @takbb,
Superb! Those pair of \ characters now make a ton of sense! It does work!
The only thing remaining is to make a regex that cleans out all the dirty data.
Your simplified regex is a seriously good starter that might just clean out 90% of the copyright statements.
Looking at the additional abstracts I found some more troublesome lines.
Highlighed:
- Blue: in the statement at the beginning of the line contains a second dot. So this statement at the beginning of the line actually ends by a dot followed by a not-whitespace. ( I am not a regex wizard, so I just looked for the pattern
\\.[A-Z]
, but that one removes also the Capital letter at the beginning of the sentence.)
- Yellow: the copyright statement does not end with a dot, but just Ltd, so it becomes too greedy and removes the fist sentence. (So we might also look for ‘Ltd’ as an alternative ending?)
- Pink: a copyright statements at the end contains more information after the first dot, followed by several other sentences until the en of the string.
So I guess I think we need to add some “alternative endings” to that regex you made. apart from “… followed by either 0 or 1 period”, we could add “… followed by ‘Ltd’, or … followed by end of string / line”, or “… followed by dot followed by non-whitespace” ?
And perhaps that needs to be in the right order…
something like this
(\©.*\.\b(?=\w))|(\©.*Ltd)|(\©.*Ltd\.)|(\©.*\.)|(\©\s\d{4})
But this one is too greedy when the abstracts contain numbers with a dot in between… ( and research papers have them a lot…) It seems the reg ex pattern looks for the last dot, in stead of limiting it to the first one. perhaps I need to look in to that [\.]{0,1}
pattern you use…
Do you have some suggestions?
Here some additional abstract lines with the pattens as in the example. - I also updated & uploaded your .knwf file.
Remove copyright text.knwf (12.3 KB)
This paper investigates --- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed erat sapien, aliquet id porta ut, porttitor scelerisque risus. --- and reduce poverty. © 2011 Kiel Institute.
We assessed intergenerational differences in --- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed erat sapien, aliquet id porta ut, porttitor scelerisque risus. --- adopt a multigenerational approach. © The Author(s) 2012.
© Center for Southeast Asian Studies, Kyoto University.Themes of inclusion, empowerment, and --- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed erat sapien, aliquet id porta ut, porttitor scelerisque risus. ---grounded in local realities.
© 2015 Elsevier Ltd.Land reform may be an effective --- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed erat sapien, aliquet id porta ut, porttitor scelerisque risus. --- effects by gender and inheritance systems.
© Springer International Publishing Switzerland 2017.This chapter provides the conceptual --- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed erat sapien, aliquet id porta ut, porttitor scelerisque risus. ---the public sector have failed.
© 2019 The Author(s) 2019.Evidence shows that women --- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed erat sapien, aliquet id porta ut, porttitor scelerisque risus. --- reported for individuals as well as households.
© 2015 Taylor & Francis.There is much debate within --- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed erat sapien, aliquet id porta ut, porttitor scelerisque risus. --- precancerous cervical lesions. © 2014 Elsevier Ltd.
© Lahore School of Economics 2015.Pakistan’s economic performance --- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed erat sapien, aliquet id porta ut, porttitor scelerisque risus. --- best way is to target poverty in Pakistan.
© The Editor(s) (if applicable) and The Author(s) 2016.Iran has experienced various social, economic, and political --- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed erat sapien, aliquet id porta ut, porttitor scelerisque risus. --- have influenced the vulnerability rate?
© Copyright 2019 by the American Psychosomatic Society.Objective: We examined associations among --- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed erat sapien, aliquet id porta ut, porttitor scelerisque risus. --- socioeconomic adversity and high social resources in the cohort.
© 2019 by the authors.The strategic goal of city management--- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed erat sapien, aliquet id porta ut, porttitor scelerisque risus. --- to create a new approach to management of city development consistent with the known facts.
© 2018 Elsevier B.V.Due to rapid economic growth and population--- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed erat sapien, aliquet id porta ut, porttitor scelerisque risus. --- solving China's RWR problems.
© 2015 Tine S. Prøitz.This article focuses on Nordic education--- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed erat sapien, aliquet id porta ut, porttitor scelerisque risus. --- analytical concepts employed within European integration studies.
© 2019, Emerald Publishing Limited.Purpose: To gain the highest performance--- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed erat sapien, aliquet id porta ut, porttitor scelerisque risus. --- therefore, less attention has been paid to them in the literature.
© 2016 Elsevier LtdThe purpose of this paper is to assess the status and progress of rural household energy sustainable development in China. A new composite indicator, rural energy sustainable development--- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed erat sapien, aliquet id porta ut, porttitor scelerisque risus. --- decrease stage from 1997 to 1998, and a rapid increase stage between 1999 and 2012.
© 2016 Informa UK Limited, trading as Taylor & Francis Group.ABSTRACT: One of the European Union’s 2014–2020 cohesion--- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed erat sapien, aliquet id porta ut, porttitor scelerisque risus. --- We discuss these implications in detail.
© Schuetze 2015.A single narrative about the Gorongosa Restoration Project (GRP--- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed erat sapien, aliquet id porta ut, porttitor scelerisque risus. --- resident populations in conservation and development schemes.
© 2019 Published under licence by IOP Publishing Ltd.The Zwicky Transient Facility (ZTF)--- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed erat sapien, aliquet id porta ut, porttitor scelerisque risus. --- The main goal of our program is to study the variability of Be stars in the range of ∼13.5 to ∼20.5 magnitudes.
© 2018Background: Coordinated approaches are needed to optimally control the spread of resistant organisms across facilities that share patients. Our goal was to understand social tensions--- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed erat sapien, aliquet id porta ut, porttitor scelerisque risus. --- Israel fell by 1.9% and 1.8%, respectively. Total EU flower imports fell by 1.4%. © The Author(s) 2010. Published by Oxford University Press, on behalf of Agricultural and Applied Economics Association. All rights reserved.
Globally as well as in the Asia-Pacific Region,--- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed erat sapien, aliquet id porta ut, porttitor scelerisque risus. --- These issues can only be addressed if the proposals incorporate lessons from on-the-ground experiences at a local, regional and national level. This edition first published 2013 © 2013 John Wiley & Sons, Ltd.
© The Authors, published by EDP Sciences, 2018.Today, the dairy sub-complex of the--- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed erat sapien, aliquet id porta ut, porttitor scelerisque risus. --- execution of the pairing algorithm. © 2012 IEEE.
Lu et al. found that health aid displaces--- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed erat sapien, aliquet id porta ut, porttitor scelerisque risus. --- assistance for health channelled to governments remains significantly fungible. © 2013 The Author(s). Published by Taylor & Francis.
© 2015 Institute of Economic Affairs.There is a continuing debate on --- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed erat sapien, aliquet id porta ut, porttitor scelerisque risus. --- enhance the climate for inward investment.
© 2018 Intellect Ltd Article.Commercial communications constitute--- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed erat sapien, aliquet id porta ut, porttitor scelerisque risus. --- is a key revenue source for ad-free services like Netflix.
© 2019 IEEE.The goal of this special session is to --- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed erat sapien, aliquet id porta ut, porttitor scelerisque risus. --- Participants will leave with resources to create their own effective faculty learning committee.
© 2017 The Korean Association for Public Administration.This paper addresses the collaboration and partnership--- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed erat sapien, aliquet id porta ut, porttitor scelerisque risus. --- can facilitate collaborative governance.