Re: Extract a substring

2020-06-18 Thread warrensacko
Try with.. [Python Substring](http://net-informations.com/python/basics/substring.htm)

Re: Extract a substring

2020-05-10 Thread walshmergak
More on... [Python Substring](http://net-informations.com/python/basics/substring.htm)

Re: Extract a substring

2020-02-04 Thread lovelmark
Python has no [substring](http://net-informations.com/python/basics/substring.htm) methods like substring() or substr(). Instead, we use slice syntax to get parts of existing strings. Python slicing is a computationally fast way to methodically access parts of your data. The colons (:) in subsc

Re: Extract a substring

2019-04-29 Thread Libman
Anyone familiar with Python (the most commonly taught introductory programming language, and, most importantly, [esr-approved](http://catb.org/~esr/faqs/hacker-howto.html)) should be used to to [negative indices](http://wordaligned.org/articles/negative-sequence-indices-in-python). (Nim has go

Extract a substring

2019-04-29 Thread cdunn2001
A friend found this recently, so I will update this to `[6 ..< test.len]`, i.e. use the ..< operator instead of bare `<`.

Re: Extract a substring

2017-04-01 Thread stbalbach
There is also system.substr()

Re: Extract a substring

2017-03-26 Thread Krux02
I recommend the `^` operator. The `^` operator works in all bracket expressions. proc main() = var test = "Hello World" echo test[5 .. ^1] # this is transformed by the compiler to this expression echo test[5 .. (len(test)-1) # 1 here can be any symbol and

Re: Extract a substring

2017-03-26 Thread cdunn2001
(I found this by google search.) That doesn't crash, but more correct is `[6 ..