当前位置:网站首页>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/BusinessRelationType
I 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边栏推荐
- Communication of components
- SQLMAP使用教程(四)实战技巧三之绕过防火墙
- 组件的嵌套和拆分
- Network foundation - header, encapsulation and unpacking
- How does an enterprise manage data? Share the experience summary of four aspects of data governance
- Databinding exception of kotlin
- Stack Title: nesting depth of valid parentheses
- Composition API premise
- .net 5 FluentFTP连接FTP失败问题:This operation is only allowed using a successfully authenticated context
- Fast quantitative, abbkine protein quantitative kit BCA method is coming!
猜你喜欢
Le Service MySQL manque dans le service informatique
Academic report series (VI) - autonomous driving on the journey to full autonomy
How can clothing stores make profits?
LC interview question 02.07 Linked list intersection & lc142 Circular linked list II
After the promotion, sales volume and flow are both. Is it really easy to relax?
抽丝剥茧C语言(高阶)数据的储存+练习
Nesting and splitting of components
MySQL service is missing from computer service
Config distributed configuration center
Esxi attaching mobile (Mechanical) hard disk detailed tutorial
随机推荐
L'étape avancée du pointeur de langage C (haut de gamme) pour l'enroulement des cocons
Stack Title: nesting depth of valid parentheses
【mysqld】Can't create/write to file
Several important steps to light up the display
Le Service MySQL manque dans le service informatique
修改Jupyter Notebook文件路径
The startup of MySQL installed in RPM mode of Linux system failed
At the age of 20, I got the ByteDance offer on four sides, and I still can't believe it
Flexible layout (I)
1090: integer power (multi instance test)
AVL树的实现
Kuboard无法发送邮件和钉钉告警问题解决
抽丝剥茧C语言(高阶)指针进阶练习
.net 5 FluentFTP连接FTP失败问题:This operation is only allowed using a successfully authenticated context
弹性布局(二)
main函数在import语句中的特殊行为
组件的嵌套和拆分
JDBC database connection pool usage problem
Asynchronous components and suspend (in real development)
PostgreSQL source code (59) analysis of transaction ID allocation and overflow judgment methods