【AP】【TEST】<testing art>※collected items.《item name》[settings]
for the example above, how can i use re with regex to extract all the things inside a specific tags?
i will need the
- AP
- TEST
- testing art
- collected items.
- item name
- settings
i am not sure which regex should i use for the re part in python
>Solution :
One way by extracting either letters, spaces or dots:
s = "【AP】【TEST】<testing art>※collected items.《item name》[settings]"
re.findall("[\w \.]+", s)
Output:
['AP', 'TEST', 'testing art', 'collected items.', 'item name', 'settings']