내가 *
기호 지정된 URL /v2/merchants/e0cf059a-5080-40a5-aaf1-67eb866aa48f/secretKey
에 UUID를 교체하려고으로 . 나는 다음과 같은 정규 표현식을 사용했지만, 나는 아직도 그것을 할 수 아니에요 :주어진 URL에 UUID를 대체 할 '/ V2/상인/e0cf059a --aaf1-67eb866aa48f 5080-40a5 /의 비밀'은 '*'를 사용하여 파이썬
regex = re.sub(
r'^[a-f0-9]{8}-?[a-f0-9]{4}-?4[a-f0-9]{3}-?[89ab][a-f0-9]{3}-?[a-f0-9]{12}',
'*',
'/v2/merchants/e0cf059a-5080-40a5-aaf1-67eb866aa48f/secretKey'
)
그것은 원래 문자열 /v2/merchants/e0cf059a-5080-40a5-aaf1-67eb866aa48f/secretKey
을 반환합니다.
Yes.Yes.Yes.Yes.Yes.Yes를 참조하십시오. – wildplasser