Hi!
With this Python's script :
import win32com.client
pyRegex = win32com.client.Dispatch('PythonModule.re')
r1 = pyRegex.pyfindall("\\d", "a1b2c3")
print r1
r2 = pyRegex.pysplit("\\d", "a1b2c3")
print r2
Your code run OK. Therefore the problem is on your VBA side.
And, sorry, I can't try that. But, are you sure than the (VBA-host)
application can support Unicode return by your Python-COM-server?
@+
Michel Claveau
_______________________________________________
python-win32 mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-win32