需要C#Regex.replace模式

asd*_*dad 2 c# regex replace

通常我Regex自己制作模式,但我无法弄清楚这一点:
我需要一个Regex.Replace用''Number'/'Number'"替换为''Number'von'Number'".

示例:"2/5"schould变为"2von5".

问题是我不能只将"/"替换为"von",因为还需要其他"/".

Kob*_*obi 5

可以替换(?<=\d)/(?=\d)使用von,使用环视.

另一种选择是,以取代(\d)/(\d)$1von$2(尽管这会在失败1/2/3).