On 01/01/2016 00:25, Mark Lawrence wrote:
On 31/12/2015 18:54, Karim wrote:
On 31/12/2015 19:18, otaksoftspamt...@gmail.com wrote:
I need to check a string over which I have no control for the first 2
non-white space characters (which should be '[{').
The string would ideally be: '[{...' b
otaksoftspamt...@gmail.com writes:
> I need to check a string over which I have no control for the first 2
> non-white space characters (which should be '[{').
>
> The string would ideally be: '[{...' but could also be something like
> ' [ { '.
>
> Best to use re and how? Something else?
On 31Dec2015 18:38, MRAB wrote:
On 2015-12-31 18:18, otaksoftspamt...@gmail.com wrote:
I need to check a string over which I have no control for the first 2 non-white
space characters (which should be '[{').
The string would ideally be: '[{...' but could also be something like
' [ { '.
otaksoftspamt...@gmail.com writes:
> I need to check a string over which I have no control for the first 2
> non-white space characters (which should be '[{').
>
> The string would ideally be: '[{...' but could also be something like
> ' [ { '.
>
> Best to use re and how? Something else?
I
On Fri, 1 Jan 2016 05:18 am, otaksoftspamt...@gmail.com wrote:
> I need to check a string over which I have no control for the first 2
> non-white space characters (which should be '[{').
>
> The string would ideally be: '[{...' but could also be something like
> ' [ { '.
>
> Best to use
On Fri, 1 Jan 2016 10:25 am, Mark Lawrence wrote:
> Congratulations for writing up one of the most overengineered pile of
> cobblers I've ever seen.
You should get out more.
--
Steven
--
https://mail.python.org/mailman/listinfo/python-list
On 31/12/2015 18:54, Karim wrote:
On 31/12/2015 19:18, otaksoftspamt...@gmail.com wrote:
I need to check a string over which I have no control for the first 2
non-white space characters (which should be '[{').
The string would ideally be: '[{...' but could also be something like
' [ {
On Thu, 31 Dec 2015 10:18:52 -0800, otaksoftspamtrap wrote:
> Best to use re and how? Something else?
Split the string on the space character and check the first two non blank
elements of the resulting list?
Maybe something similar to the following:
if [x for x in s.split(' ') if x != ''][0:3]
I would personally use re here.
test_string = ' [{blah blah blah'
matches = re.findall(r'[^\s]', t)
result = ''.join(matches)[:2]
>> '[{'
On Thu, Dec 31, 2015 at 10:18 AM, wrote:
> I need to check a string over which I have no control for the first 2
> non-white space characters (which should
Thanks much to both of you!
On Thursday, December 31, 2015 at 11:05:26 AM UTC-8, Karim wrote:
> On 31/12/2015 19:54, Karim wrote:
> >
> >
> > On 31/12/2015 19:18, snailp...@gmail.com wrote:
> >> I need to check a string over which I have no control for the first 2
> >> non-white space characters
On 31/12/2015 19:54, Karim wrote:
On 31/12/2015 19:18, otaksoftspamt...@gmail.com wrote:
I need to check a string over which I have no control for the first 2
non-white space characters (which should be '[{').
The string would ideally be: '[{...' but could also be something like
' [ { .
On 31/12/2015 19:18, otaksoftspamt...@gmail.com wrote:
I need to check a string over which I have no control for the first 2 non-white
space characters (which should be '[{').
The string would ideally be: '[{...' but could also be something like
' [ { '.
Best to use re and how? Someth
On 2015-12-31 18:18, otaksoftspamt...@gmail.com wrote:
I need to check a string over which I have no control for the first 2 non-white
space characters (which should be '[{').
The string would ideally be: '[{...' but could also be something like
' [ { '.
Best to use re and how? Somethin
I need to check a string over which I have no control for the first 2 non-white
space characters (which should be '[{').
The string would ideally be: '[{...' but could also be something like
' [ { '.
Best to use re and how? Something else?
--
https://mail.python.org/mailman/listinfo/pyt
14 matches
Mail list logo