I’m extracting from bibtex and have a little problem, as the format can have values wrapped inside curly brackets OR NOT.
Please find the example text below:
@article{Roxas_2011, title={Social Desirability Bias in Survey Research on Sustainable Development in Small Firms: an Exploratory Analysis of Survey Mode Effect}, volume={21}, ISSN={1099-0836}, url={http://dx.doi.org/10.1002/bse.730}, DOI={10.1002/bse.730}, number={4}, journal={Business Strategy and the Environment}, publisher={Wiley}, author={Roxas, Banjo and Lindsay, Val}, year={2011}, month=sep, pages={223xe2x80x93235} }
A you can see, all except month are x={y}, so a simple (PHP preg_match with mUg flags):
[s,]+(.*)={(.*[^}])}
Does the trick for everything except month=sep.
If I try using “, ” as delimited, it aparantly also splits authors.
Can you please help me? 🙂
Thanks 🙂