Skip to main content
Question

Need some help with RegEx in JSON data

  • Mar 11, 2025 3:14 AM UTC
  • 4 replies
  • 100 views

Shawn Cannon
Forum|alt.badge.img+1

Need some help breaking some events. I have some JSON (no arrays) and it looks like more than one event is in each _raw data tha is coming in. Each distinct event in _raw starts with {"line" and {"line" has to remain in each event. I need a RegEx for this one I think.

4 replies

> I need a RegEx for this one I think.Yes


Shawn Cannon
Forum|alt.badge.img+1
  • Author
  • Known Participant
  • Mar 11, 2025 4:37 AM UTC

ok think i got it


json is structured. Using json tools is usually less fragile than string processing.


Shawn Cannon
Forum|alt.badge.img+1
  • Author
  • Known Participant
  • Mar 11, 2025 4:37 AM UTC

yeah this one just sucked having more than one event inside the _raw data. I was able to get the event breaker right