Hacker News new | ask | show | jobs
by pisdrul 4196 days ago
What about if I want to extract a text based on a pattern which comes before the match?

eg:

Hello name: carl Your name: simon Enter your name: mark

I am only interested in the first name and not in the string "name:". Will it works?

1 comments

Yes it works, it finds out the 'shape' of the surrounding text and it writes a regex using lookarounds operators which does the work right. So, yes, it builds an extractor which is able to extract only "simon" and "mark"