Quoted substrings provide information on how to split strings with spaces while protecting them

Asked 2 years ago, Updated 2 years ago, 124 views

'this is "a test"'

Split these strings

 ["this", "is", "a", "test"] #Not this one

["this", "is", "a test"] #This!

I hope the quotation marks are protected together.

I'm trying to make a function myself, so I don't have a clue, so please guide me

regex python

2022-09-22 22:12

1 Answers

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.