Sign Up

Sign In

Forget Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

You must login to ask question.

Discy Latest Questions

  • 0

I looking to do the opposite of what has been done here: import retext = '1234-5678-9101-1213 1415-1617-1819-hello're.sub(r"(d{4}-){3}(?=d{4})", "XXXX-XXXX-XXXX-", text)output = 'XXXX-XXXX-XXXX-1213 1415-1617-1819-hello' Partial replacement with re.sub() My overall goal is to replace all XXXX within a text using a neural network. XXXX can represent names, places, ...