Using AI to process, classify and filter text?

First off: I am a noob, only work with HTML and CSS, but have a little bit of understanding of how programming and the web works.

So I am interestig on how one would process html / text nowadays to classifiy it by certain standards. Let's say for example I would want to filter a number out of a block of text, but if there are multiple numbers, I want to prefer the number that has a certain word in it's radius and so on.

I know that this can be done with regex (regular expressions), but wonder how hard it is to build such a classification service using ML/AI services available today.

Anybody have some poiners on where to start looking / learning or can maybe sketch out the process roughly?
Was this page helpful?