If there is a string like this " www.com.baidu.com "
What I want to match is all the strings after the first com, but excluding " com ", how should I write the regular expression? ? That is to say, the desired string is ".baidu.com"
It is best not to match it by capturing groups;
We are both newbies and have the same question.
I guess before the text is taken out, set an intermediate state to accept the string width of the text, subtract the first 3, and then assign it to the calling one.
(The above are all my guesses.)
The regular diagram above:,