Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Re.search misses string end
#3
What heiner55 is showing you is that the string representation of an re Match object does not contain the full text that was found. Keeping in mind that re searches can be very complex, and can have multiple groups matching different parts of the string. So a simple string is not necessarily going to be able to represent what was matched.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
Reply


Messages In This Thread
Re.search misses string end - by CaptainCsaba - Apr-01-2019, 02:12 PM
RE: Re.search misses string end - by heiner55 - May-24-2019, 10:39 AM
RE: Re.search misses string end - by ichabod801 - May-24-2019, 12:50 PM
RE: Re.search misses string end - by heiner55 - May-25-2019, 01:46 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to read a file as binary or hex "string" so that I can do regex search? tatahuft 3 996 Dec-19-2024, 11:57 AM
Last Post: snippsat
  Writing a Linear Search algorithm - malformed string representation Drone4four 10 3,989 Jan-10-2024, 08:39 AM
Last Post: gulshan212
  strategy to troubleshoot what pyinstaller misses hammer 0 1,430 May-23-2022, 01:05 AM
Last Post: hammer
  Search multiple CSV files for a string or strings cubangt 7 12,944 Feb-23-2022, 12:53 AM
Last Post: Pedroski55
  Search string in mutliple .gz files SARAOOF 10 9,667 Aug-26-2021, 01:47 PM
Last Post: SARAOOF
  fuzzywuzzy search string in text file marfer 9 8,358 Aug-03-2021, 02:41 AM
Last Post: deanhystad
  I want to search a variable for a string D90 lostbit 3 3,414 Mar-31-2021, 07:14 PM
Last Post: lostbit
  String search in different excel Kristenl2784 0 2,106 Jul-20-2020, 02:37 PM
Last Post: Kristenl2784
  Interactive Menu, String Search? maggotspawn 3 3,453 May-11-2020, 05:25 PM
Last Post: menator01
  binary search string help kietrichards 1 2,915 Mar-08-2019, 12:43 PM
Last Post: stullis

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020