Replace "dash" values in a field with new line- VB equivalent of Python

Cathy James nambo4jb at
Tue Mar 19 16:36:51 CET 2013

Dear All,
I need some assistance with Python so that values in the "Name" field e.g.
Murray - James - Leo can be labeled as:


with a new line replacing every dash.

Basically I need the equivalent of this VB in Python:
replace ( [Name]  , "-", vbNewLine)

I tried this but no luck:

str.[Name].replace("-", "\n")
str.[Name].replace("-", \n)
[Name].replace("-", \n")

Your help is appreciated
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Python-list mailing list