I\'m trying to run a snippet of Python from within Java, using Jython. If I use an exec statement to import, everything works.
PythonInterpreter pi = new Py
Try this,
eval("__import__('re').match('abc', 'abc123')")