Test Dbol Cycle Log Pharma TRT Use a small regular expression that looks for a slash (`/`), skips any whitespace that follows it, and then captures the first non‑whitespace token. The captured part is exactly the "value" you want. import re text = "… / foo bar … / baz qux" capture everything after a slash until the next space
values = re.findall(r'/\s(^\s+)', text) print(values) 'foo', 'baz' Explanation `\/` – matches |