Bollettino Postale Per Passaporto Elettronico Pdf Download But I would like to have a different string that I am trying to to match. In the case above the best string is "Bollettino Postale Per Passaporto Elettronico Pdf 13 mabimoter". Here is the code I am using, which returns an Empty list even with the regex. import re filepath ='some/location/file.txt' file = open(filepath, "r") file_string = file.read() file.close() target_string ='some text' pattern = re.compile(r'Bollettino Postale Per Passaporto Elettronico Pdf [0-9]* mabimoter') print(pattern.match(file_string)) Thanks for all your help! A: Try using the dot pattern for non-greedy (?) matching: >>> s = "Bollettino Postale Per Passaporto Elettronico Pdf 13 mabimoter" >>> s.match('.*?Bollettino Postale Per Passaporto Elettronico Pdf [0-9]* mabimoter') Here you use a. to match any character. A: You can use this regex: Bollettino Postale Per Passaporto Elettronico Pdf [0-9]+ mabimoter And replace with just mabimoter This will match any amount of "digit" that are followed by "mabimoter". [A case of patient admitted to the emergency department due to sudden, severe neck pain following tooth extraction]. We experienced a patient who was admitted to our emergency department due to sudden, severe neck pain following extraction of the lower left third molar. The patient showed no neck swelling and neurological deficits, but had fever of 38.5 degrees C. The results of the cervical X-ray showed atlantoaxial subluxation and thickening of the soft tissue around the C3-4 and C4-5 joints. The jugular vein compression syndrome was diagnosed based on these findings. Steroid therapy was performed to control the d0c515b9f4
Related links:
Comentarios