Hello Everyone,
I want to change the case on input string i was able to match using python
regex but couldn't find the way to change the case.
For example string:
Input: 7Section Hello Jim
output: 7Section hello Jim
I was doing if statment with regex
if re.match("(\d+\w* )(Hello)( \w+)",stri
title()group(3)
else:
output.title()
On Thursday, October 1, 2020 at 10:53:16 PM UTC+1, cameron...@gmail.com wrote:
> On 01Oct2020 12:41, Raju wrote:
> >I want to change the case on input string i was able to match using
> >python regex but couldn't find the
http://www.moneymaking4.blogspot.com/
--
http://mail.python.org/mailman/listinfo/python-list
http://www.moneymaking4.blogspot.com/
--
http://mail.python.org/mailman/listinfo/python-list
http://www.moneymaking4.blogspot.com/
--
http://mail.python.org/mailman/listinfo/python-list
http://www.moneymaking4.blogspot.com/
--
http://mail.python.org/mailman/listinfo/python-list
What would be a simple way to achieve this ?
CK Raju
--
http://mail.python.org/mailman/listinfo/python-list
On Sat, Jan 31, 2009 at 4:19 PM, Gabriel Genellina
wrote:
> for line in f:
> do_something_with(line)
Thanks a lot.
CK Raju
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
I am a beginner in Python. In fact, beginner to coding/ scripting.
Here is a scenario, I need to code. Need your help on this:
A script that
1. Reads from a file (may be a local file say test.txt)
2. And, if the line begins with a "#", should print the line one time
3. if the
de line...\n'
elif(count== 4):
print data + '\ninvalid line!\n'
elif count>=1:
for i in range(0, count):
print data
Thanks,
R Abhinayaraj
-Original Message-
From: gagsl-...@yahoo.com.ar [mailto:gag
Thank you so much for your guidance, Bruno.
This should help me in a long way.
Here is the code I have written.
path = raw_input("\nEnter location eg. c:/buffer/test.txt : \n")
fileIN = open(path)
count = 0
for line in fileIN:
data= line
if '' in data:
-Original Message-
From: Bruno Desthuilliers [mailto:bruno.42.desthuilli...@websiteburo.invalid]
Sent: Thursday, March 05, 2009 10:45 PM
To: python-list@python.org
Subject: Re: Help required to read and print lines based on the type of first
character
abhinayaraj.r...@emulex.com a écrit
Could anyone suggest whether there is any Python to Perl code convertors?
I found one on the net viz. Perthon. But it wasn't really helping out.
Thanks
Agni
--
http://mail.python.org/mailman/listinfo/python-list
-Original Message-
From: ch...@rebertia.com [mailto:ch...@rebertia.com] On Behalf Of Chris Rebert
Sent: Wednesday, March 18, 2009 10:53 AM
To: Raju, Abhinayaraj
Cc: python-list@python.org
Subject: Re: Python to Perl transalators
2009/3/17 :
> Could anyone suggest whether there is
-Original Message-
From: Andre Engels [mailto:andreeng...@gmail.com]
Sent: Wednesday, March 18, 2009 3:53 PM
To: Raju, Abhinayaraj
Cc: python-list@python.org
Subject: Re: Python to Perl transalators
On Wed, Mar 18, 2009 at 6:27 AM, wrote:
>
> -Original Message-
>
Thanks Nick.
The website content is impressive.
Thanks
Agni
-Original Message-
From: Nick Craig-Wood [mailto:n...@craig-wood.com]
Sent: Wednesday, March 18, 2009 9:00 PM
To: python-list@python.org
Subject: Re: Python to Perl transalators
Armin wrote:
> On Wednesday 18 March 2009 1
Hi,
We currently use VC6.0 and Python 2.2 for our project.
As part of porting our project to VC2005 when i try to compile our application,
it gives the following error
Traceback (most recent call last):
File
"v:\Component\DS\scripts\messagebuilder\IL_Messagebuilder\test\test_IL_setg
gt;
> Gedit has a plugin that brings up a python intepreter.
> Edit->Preferences->Plugins->python console I think.
>
> Geremy Condra
Hi Dani,
I started liking wingware ide, I used free version before my company
finally bought a licensed version.
Give it a try www.wingware.com
R
18 matches
Mail list logo