我有一个网址https://example.com/A_segment/B_segment/ref=abc。有没有办法从中提取B_segment出来?*URL 并不总是相同的,但 B_segment 总是跟在 A_segment 之后并在 ref= 之前。 查看完整描述