\l operation in regular expressions

2005-05-24 Thread Kalle Anka
I've started to play around with regexps in Python and I tried something like this print re.sub( r'(\bw\w+\b)', r'\u\1', 'will it work') and get \uwill it \uwork when I had expected Will it Work I tried to find some documentation about this but I can't find anything that says if operations li

Re: Strings for a newbie

2005-05-27 Thread Kalle Anka
Malcolm Wooden dtptypes.com> writes: > Yes Sergei, as 3 of the lines are Dim statements, the real code is just 4 > lines, a totally logical. It's not the amout of code thats a probelm, it's > following the logic and structure thats important. As I said Python.. UGH! Since I both use RB and Pyt

Re: Strings for a newbie

2005-05-27 Thread Kalle Anka
Malcolm Wooden dtptypes.com> writes: > I want to put a sentence of words into an array, eg "This is a sentence of > words" > > In RB it would be simple: > > Dim s as string > Dim a(-1) as string > Dim i as integer > > s = "This is a sentence of words" > For i = 1 to CountFields(s," ") > a.a