Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using Regular Expressions to Remove Property?

Status
Not open for further replies.

buddyrich2

Technical User
Apr 12, 2006
87
US
I'm trying to use a pre-defined Foxpro object that creates a JSON string but it includes a property in the output that I do not need. I was told that I could use Regular Expressions to remove this property. Does anyone know how to do this?
 
Buddyrich,

Sorry ... I should have read your post more closely. It's a property of the JSON string that you want to remove, not of a VFP object. Is that right?

If so, then you can indeed do it with a regular expression, but it's probably a lot easier to use VFP's native string handling.

If you could show the string that you have produced, and the bit that you want to remove, I'm sure someone here will be able to guide you.

Mike


__________________________________
Mike Lewis (Edinburgh, Scotland)

My Visual FoxPro site: www.ml-consult.co.uk
 
Thanks Mike, indeed after reading your post I found a way using regular foxpro functions to change the JSON string.

I appreciate your help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top