Tự giới thiệu

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 the literal `/`.


`\s` – consumes any whitespace that follows it.


`(^\s+)` – captures one or more characters that are not whitespace.


This is the "value" you need.

If you only need the first such value, replace `findall` with `search` and access the first group:




m = re.search(r'/\s*(^\s+)', text)
if m:
print(m.group(1))
'foo'



This will reliably extract the desired string following a slash.
giống cái

liên kết xã hội