Author Topic: Regex on Netsend results  (Read 1756 times)

xabaras

  • Guest
Regex on Netsend results
« on: April 19, 2012, 12:43:14 am »
Hi all,
what is the best way to use a regex on the result coming from a netsend call?
Which library should i use?

Thanks
Alex

tim

  • Administrator
  • Hero Member
  • *****
  • Posts: 1595
  • Karma: +11/-1
    • View Profile
    • DragonFireSDK
Re: Regex on Netsend results
« Reply #1 on: April 19, 2012, 09:11:46 am »
You should be able to use any standard C or C++ library (as long as you have source code) in your DragonFireSDK projects.  You could integrate something like T-REX in your app (http://tiny-rex.sourceforge.net/).  Just put all of the code into header files and you should be sailing along just fine!

Note: I have not tried this yet myself, but I took a quick survey of open source regular expression parsers and this one is lightweight and straight up C, so it should integrate well with your app.

Tim
Tim Sommers
DragonFireSDK Team

xabaras

  • Guest
Re: Regex on Netsend results
« Reply #2 on: April 28, 2012, 11:24:59 am »
yep... I've tried TRex... it works fine and is very very light... thank you for the hint, tim