![]() |
1
0
我想说有一个正则表达式解决这个问题,但它会很复杂。您必须找到“.”的最后一个匹配项并获取其后的内容,然后应该获取介于最后一个和倒数第二个“.”之间的内容,然后获取倒数第二个句点之前的任何内容,直到右侧的第三个句点(子域)“.”。
Regex: To pull out a sub-string between two tags in a string Regex to replace all \n in a String, but no those inside [code] [/code] tag |