Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Basic Realbasic > One For the Reg...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 3266 of 3321
Post > Topic >>

One For the RegEx Gurus

by Peter <joe@[EMAIL PROTECTED] > Sep 30, 2007 at 12:04 AM

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
 




 1 Posts in Topic:
One For the RegEx Gurus
Peter <joe@[EMAIL PROT  2007-09-30 00:04:37 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Tue Jul 8 23:11:28 CDT 2008.