Dear all,
I am trying to scrape BibTeX entries from web-pages using
javascript
(from within a firefox extension)
A single entry looks roughly like this:
resourceType{
field1 = aValue,
field2 = "value with quotation marks",
field3 = "value with quotation mark and in
the field value",
field4 = ,
lastfield = "should not have a delimiting comma, but
some generators do
anyhow"
}
(many more entries like above)
for starters, I am trying to get all the entries from a
page.
using a simple
/ ([\s\S]+?){[\s\S]+?}/gim
unfortunatly stops greedyly at entries that include }
brackets.
I am not very familiar with regexp in general, so maybe
there's some
fundamental things I do not get right.
Can anybody of you help me?
Thanks a lot in advance
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Regex" group.
To post to this group, send email to regex googlegroups.com
To unsubscribe from this group, send email to
regex-unsubscribe googlegroups.com
For more options, visit this group at http://groups.go
ogle.com/group/regex
-~----------~----~----~----~------~----~------~--~---
|