Ruby on Rails Friday, December 28, 2018

On Fri, 28 Dec 2018 at 21:40, fugee ohu <fugee279@gmail.com> wrote:
> ...
> I think I just need to strip the leading /**/jQuery18307882633047005491_1545805999753 from the result /**/jQuery18307882633047005491_1545805999753({"success":true,"code":0,"results":[{"productId":32817749905,
> Anyone can help with the regex?

If you can't work out the regex just find the position of the first {
and strip to there.

Colin

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLsi4jY7g5Md1BGEnCNFO6nEW4mM-XUhX4WU_7%2B8MD0Mwg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment