0

I'm trying to match strings of the form:

"FLOAT:FLOAT:FLOAT"

where: FLOAT="(\d*\.\d*)"

I would like to not repeat code. (eg. "(\d*\.\d*):(\d*\.\d*):(\d*\.\d*)")

Is there support for this in regex? Or is this typically done with string manipulation (.format())?

I'm using python, but I'm interested in other flavors of regex as well.

JayMech
  • 11
  • 3

0 Answers0