Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Regex, creating a pattern
#4
I

Have removed punctuation, but I still need a code that will pull any sentence with image:

image003jpgimagejpegimage003jpg01D4E56EA5A4A0E0813720190401T123950truefalseimage001jpgimagejpegimage001jpg01D4E898B7AA95B0813720190401T123950truefalseNJS Basson Snr Basson Familie Trust Gothoma Diggings NJSxlsxapplicationvndopenxmlformatsofficedocumentspreadsheetmlsheet41BB382125CA54438BDE8428DBDF8B6Cmnsinternalcoza8685220190401T123950falsefalseNJS BASSON SNRPDFapplicationpdfEBA76A0D4619594DB6951BE861F9FF9Emnsinternalcoza36389120190401T123950falsefalse47984420190401T123931Z20190401T123950ZtruefalseLandbouLandbousantamcozaSMTPMailboxAgriculture EscalationAgriCCCEscalationsantamcozaSMTPMailboxtruetrueEternity ClaimseternityclaimskoshcomcozaSMTPOneOfffalse 000000000 ZZZZ
There are white spaces in between my text, whenever it finds an image sentence it needs to remove it. This is the text that should be removed from the above:
image003jpgimagejpegimage003jpg01D4E56EA5A4A0E0813720190401T123950truefalseimage001jpgimagejpegimage001jpg01D4E898B7AA95B0813720190401T123950truefalseNJS
Reply


Messages In This Thread
Regex, creating a pattern - by stahorse - Apr-23-2019, 12:46 PM
RE: Regex, creating a pattern - by DeaD_EyE - Apr-23-2019, 02:02 PM
RE: Regex, creating a pattern - by stahorse - Apr-24-2019, 05:22 AM
RE: Regex, creating a pattern - by stahorse - Apr-24-2019, 07:21 AM
RE: Regex, creating a pattern - by perfringo - Apr-24-2019, 08:23 AM
RE: Regex, creating a pattern - by DeaD_EyE - Apr-24-2019, 08:29 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Regex pattern match WJSwan 2 3,084 Feb-07-2023, 04:52 AM
Last Post: WJSwan
  regex pattern to extract relevant sentences Bubly 2 2,814 Jul-06-2021, 04:17 PM
Last Post: Bubly
  Creating new list based on exact regex match in original list interjectdirector 1 3,645 Mar-08-2020, 09:30 PM
Last Post: deanhystad
  Regex Pattern NewBeie 5 4,306 May-13-2019, 01:27 PM
Last Post: michalmonday
  Reading a Regex pattern stahorse 12 7,934 Apr-25-2019, 10:21 AM
Last Post: NewBeie
  Help creating a pattern using the re module zulu_likuum 6 4,572 Jan-09-2019, 10:51 PM
Last Post: Gribouillis

Forum Jump:

User Panel Messages

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