On Mon, Mar 28, 2022 at 02:13:32PM +0200, StrikerOmega wrote: > You can also "grab" values enclosed in brackets or in any kind of character > and It works as you would expect. > > sample.grab(start="tree:[", end="]") > >> 'Apple tree'
If we have sample = "sqrt(sin(x) + cos(y))" and sample.grab(start="sqrt(", end=")") which of these does it return? 1. "sin(x" 2. "sin(x) + cos(y)" -- Steve _______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/Z4UKQCOOGIAXV2MPGCX2URK52MJBN5NN/ Code of Conduct: http://python.org/psf/codeofconduct/