So what's left over on the right-hand side is the non-green part of each row.
Thanks!
Go to Solution
I think you are asking for a regex to match all but the last segment.
regex("aaa.bbb.ccc.ddd","([^\.]+\.)+")
aaa.bbb.ccc.
[^\.] means a single character that is not a period
[^\.]
[^\.]+ means one or more of those characters
[^\.]+
[^\.]+\. means match the period
[^\.]+\.
([^\.]+\.)+ means do all that one or more times
([^\.]+\.)+
View solution in original post
regex is not the best way to attack this problem.
word(-1,"aaa.bbb.ccc.this is it",".") // "this is it"
will get the last segment efficiently.
word([1 -2],"aaa.bbb.ccc.this is it",".") // "aaa.bbb.ccc"
will get the left part efficiently.
na1=Regex("aaa.bbb.ccc.ddd","[^\..]+$");