I want to write a python regex expression to match following text
< 0 | d/dR | 1>
I could do something like this
r"<\s*(\d+)\s*\|\s*xx\s*\|\s*(\d+)\s*>"
but can not figure out how to do the fraction part in the middle (d/dR) represented as xx. Any help? Thank you!!