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

Asked 1 years ago, Updated 1 years ago, 111 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.