« first day (1596 days earlier)
← previous day
next day →
last day (1982 days later) »
Sam
11:50
@JackDaniels what are you trying to accomplish, a product name from a long string
?
Jack Daniels
@Sam I'm trying to replace the string with null, because it's of no use to me and is getting picked up by my other patterns
Sam
replacing a string with null... you mean test_string = None?
Jack Daniels
not with null exactly (my bad), replacing with any string that's not in any of the rest of patterns
Sam
what is the expected value?
Jack Daniels
Carrolton II random string Kit Rich Content Setup:Display Rich Content with Marketing Copy and Bullets;Large room 12 ft. x 12 ft
This is the output I'm looking for
Aran-Fey
11:56
@JackDaniels
re.search
returns
None
with that pattern and that string
Sam
@JackDaniels it also doesnt work in a regextester
Andras Deak
@Aran-Fey if only we had an MCVE to argue about
Jack Daniels
Andras Deak
@JackDaniels that's not an MCVE
Jack Daniels
@Sam I have attached the output
Sam
11:59
i see. however i tried it on
regextester.com
and it didnt work
maybe they format it different
Andras Deak
But, whatever. I'm not the one trying to ask for help here.
Jack Daniels
@AndrasDeak I understand
Andras Deak
I don't think you do
Sam
lmao i mostly come here because 90% of my questions are stupid and know theyll get downvoted
PM 2Ring
@JackDaniels Please don't post images of text here. Or on the main site.
Jack Daniels
12:01
Ok
PM 2Ring
Thanks
Aran-Fey
We still need to see how your
re.sub
is failing
because it's working for me
Andras Deak
we're nearing two screenfuls of this discussion that could've been fixed in two messages given an MCVE I asked for early, so I'm probably going to trash this wall of noise soon
←
25 messages moved from
Python
« first day (1596 days earlier)
← previous day
next day →
last day (1982 days later) »
all rooms
Transcript for
Jul
2
Jul '19
3
Jul
5
♦
Python Ouroboros - The Rotating Knives
Messages from the Python room that didn't meet our standards o...
join this room
about this room
00:00
06:00
12:00
18:00
all times are UTC
site design / logo © 2024 Stack Exchange Inc;
legal
mobile