Let's say i have something like that:
BlahBlahBlah Some text that I want to fetch.
<div class="c2">something does not important.</div>
<a href="blabla.html">a link text</a>
Simple answer. You can't. CSS selectors target Nodes, not specific letters in some text. There are small exceptions when you consider pseudo selectors, but you can't accomplish what you want with CSS alone.
The best advice I have is to modify the HTML and wrap the content you want to target in a
<span> element and give it a CSS class that you can actually target.
Since you're using Jsoup to fetch the page and target your Node you simply have one more step to grab your text. Basically, after you select your node and grab the inner text, just run a regex over it and grab everything before the first period.
Your regex should look something like this in Java: