K
Size: a a a
K
S
S
K
K
K
K
S
S
S
ϻஜ
data-react-helmet="true"><script type="application/ld+json" data-react-helmet="true">{
"@context": "http://schema.org",
"@type": "GeoCoordinates",
"name": "POSX",
"description": "Dop.11i",
"additionalType": "Dop.11i",
"identifier": "MMSI 273379460, ",
"latitude": "42.32607",
"longitude": "31.53599",
}</script><style data-styled=""
ϻஜ
🎄T
ϻஜ
JSON.parse($('script[type="application/ld+json"]').text())
ϻஜ
Ee
# coding=utf8
# the above tag defines encoding for this document and is for Python 2.x compatibility
import re
regex = r"\{.*?\}"
test_str = ("data-react-helmet=\"true\"><script type=\"application/ld+json\" data-react-helmet=\"true\">{\n"
" \"@context\": \"http://schema.org\",\n"
" \"@type\": \"GeoCoordinates\",\n"
" \"name\": \"POSX\",\n"
" \"description\": \"Dop.11i\",\n"
" \"additionalType\": \"Dop.11i\",\n"
" \"identifier\": \"MMSI 273379460, \",\n"
" \"latitude\": \"42.32607\",\n"
" \"longitude\": \"31.53599\",\n"
" }</script><style data-styled=\"\"")
matches = re.finditer(regex, test_str, re.MULTILINE)
for matchNum, match in enumerate(matches, start=1):
print ("Match {matchNum} was found at {start}-{end}: {match}".format(matchNum = matchNum, start = match.start(), end = match.end(), match = match.group()))
for groupNum in range(0, len(match.groups())):
groupNum = groupNum + 1
print ("Group {groupNum} found at {start}-{end}: {group}".format(groupNum = groupNum, start = match.start(groupNum), end = match.end(groupNum), group = match.group(groupNum)))
Ee
S
ϻஜ
Ee