I want to print the string. In my code i am not getting the right string.
str=re.search(r"[(0-9)+]",line) (dont use raw_string here)
This gives nothing. I want to extract 001 from there.
Note: I dont want to use rawstring.because here user is getting the path from other resource. Is it possible to replace single slash by double salsh to solve this problem.
If another person is passing the string like this "\Python\001tag\file.txt" without giving this as raw string. Here I want to search what string that person passed and in this i want to extract only the "001" number.how to do in this case?
Edited 2 Years Ago by mohan raj91