adding projects to repo
This commit is contained in:
12
vrops-api/__dev/old/regex.py
Normal file
12
vrops-api/__dev/old/regex.py
Normal file
@@ -0,0 +1,12 @@
|
||||
import re
|
||||
import json
|
||||
|
||||
data = "host info in {'pageInfo': {'totalCount': 37, 'page': 0, 'pageSize': 1000}, 'links': [{'href': '/suite-api/api/resources/15b3ea0c-9f62-4fc2-93b8-d4281196043e/relationships?page=0&pageSize=1000', 'rel': 'SELF', 'name': 'current'},"
|
||||
|
||||
pattern = r'(?:.*resources\/)(?P<host_id_response>[^\/]+)'
|
||||
|
||||
match = re.findall(pattern, data)
|
||||
|
||||
host = [x for x in match]
|
||||
|
||||
print(host)
|
||||
Reference in New Issue
Block a user