I need to extract the following text string using google/re2: Audiences » Affinity Categories » Food & Dining » Fast Food Cravers
In sum, any string after no.3 »
Would appreciate any help/ guidance, million thanks!
best, yg
The following Regular Expression extracts the 3rd string:
(?:[^»]+?»){3}\s*(.+?)\s*[\nÂ]
You can test it interactively here.
I haven't actually used re2
before so keep in mind possible syntax differences.