Hi,
I need to parse some SVG into its constituent parts. The attributes are
in the form of:
transform ="translate(num,num) rotate(num) scale(num,num)"
I only need to parse the part within the quotes. Both the translate and
scale attributes can hold 1 or 2 values. The num value can be negative
and have a suffix such as px,em etc - so it would be best to keep these
as strings for further parsing. Only one of the translate,rotate or
scale attributes actually need to be present.
I figured regex would be the way to go but haven't a clue how to do it.
Can anyone help?
thanks!
_________________
Peter
www.fracturedSoftware.com
zegsRuler - add graphic rulers to your REALbasic project in minutes!
Rondo - Midi made easy.
AlphaDraw Preview a78 now available