Hello. My problem is about processing Regular Expressions (Perl-Compatible)
as on img:

i've tried a hundreds of patterns, and still nothing
for #1 not working:
'/\..+$/'
'/\..+?$/'
'/\..+?(?!\.)$/'
\
yes, this is followed char, I only dont know ifwiem czy
logic is not inversed by $
for #2
$replace = '/\.[\w\W]+$/';
$with = '';
preg_replace($replace,$with,$str);
(without returning correct alphanumeric findings for now, but still not working)
others:
'/\.[\w\W^\.]+$/'
'/\.[\w\W^\.]+?$/'
'/\.[\w\W[^\.]]+?$/'
'/\.[\w[\W[^\.]]]+?$/'
'/\.[\w\W&&[^\.]]]+?$/' //&& working in java, but rather not in php
'/\.(?:\w|\W)+$/' //or even without []
'/\.(?:\w?|\W?)+$/'
first idea with returnings:
'/\s*\.[(\w)\W^\.]+?$/'
'/\.(?:\(w?)|\W?)+$/'
$replacer = '\.$1';
anyone could help me with this?
greetings
michael