note
Krambambuli
<code>
while(<DATA>) {
/(.*\.)?(\S+)/;
print "$2\n";
}
__DATA__
2L
bar.2L
bar.ber.bir. 2L
bar.ber.bir.2L
</code>
works for me.<br><br>
The above reads your request as "get the first substring part not containing whitespaces that follows the last dot char (if there is one) in the input string; otherwise, return the first substring part of the input string that doesn't contain whitespace".<br><br>
Hope that helps.
<!-- Node text goes above. Div tags should contain sig only -->
<div class="pmsig"><div class="pmsig-600591">
<br>Krambambuli<br>
---<br>
</div></div>
726738
726738