Daniel Nogradi <[EMAIL PROTECTED]> wrote:
>If you execute your script from the command line on Linux you need to
>enclose it in quotation marks otherwise your shell will interfere. So
>you need to invoke your program as
>
>python yourscript.py "ABCE-123456 ABC_DEF_Suggest(abc def ghi).txt"
Same i
Works for me.
I get "abc def ghi" using your script on Windows XP and ActiveState
Python 2.4.3
rd
--
http://mail.python.org/mailman/listinfo/python-list
> hi
>
> if i have a string like this
>
> "ABCE-123456 ABC_DEF_Suggest(abc def ghi).txt"
>
> that needs to be passed to a python script
> and i wanted to get the words inside the brackets after i passed this
> string. I did a re
> something like
>
> thestring = sys.argv[1:]
> pat = re.compile(r".*
hi
if i have a string like this
"ABCE-123456 ABC_DEF_Suggest(abc def ghi).txt"
that needs to be passed to a python script
and i wanted to get the words inside the brackets after i passed this
string. I did a re
something like
thestring = sys.argv[1:]
pat = re.compile(r".*\((.*)\)\.txt$")
if pa