当前位置:网站首页>How do I get the last part of a string- How to get the last part of a string?
How do I get the last part of a string- How to get the last part of a string?
2022-07-07 07:18:00 【Rich in starch】
problem :
Given this string: Given this string :
http://s.opencalais.com/1/pred/BusinessRelationTypeI want to get the last part of it: "BusinessRelationType" I want to get the last part of it :“BusinessRelationType”
I have been thinking about reversing the whole string then looking for the first "/", take everything to the left of that and reverse that. I've been thinking about reversing the entire string , Then find the first “/”, Move everything to its left and reverse it .However, I'm hoping there is a better/more concise method. however , I hope there is a better / A simpler approach .Thoughts? idea ?
Thanks, Paul thank you , Paul
Solution :
Reference resources : https://stackoom.com/en/question/EDAc边栏推荐
猜你喜欢
随机推荐
MySQL user permissions
Multidisciplinary integration
SQLMAP使用教程(四)实战技巧三之绕过防火墙
Tumor immunotherapy research prosci Lag3 antibody solution
点亮显示屏的几个重要步骤
Network foundation - header, encapsulation and unpacking
JDBC database connection pool usage problem
Blue Bridge Cup Birthday candles (violence)
Lm11 reconstruction of K-line and construction of timing trading strategy
OOM(内存溢出)造成原因及解决方案
How DHCP router works
Pass child component to parent component
非父子组件的通信
Communication of components
$refs: get the element object or sub component instance in the component:
Freeswitch dials extension number source code tracking
Chinese and English instructions prosci LAG-3 recombinant protein
How can gyms improve their competitiveness?
异步组件和Suspense(真实开发中)
FullGC问题分析及解决办法总结








