当前位置:网站首页>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边栏推荐
- Databinding exception of kotlin
- Four goals for the construction of intelligent safety risk management and control platform for hazardous chemical enterprises in Chemical Industry Park
- 弹性布局(二)
- How Oracle backs up indexes
- Several important steps to light up the display
- LC 面试题 02.07. 链表相交 & LC142. 环形链表II
- JS decorator @decorator learning notes
- Freeswitch dials extension number source code tracking
- Reflection (II)
- main函数在import语句中的特殊行为
猜你喜欢
"Xiaodeng in operation and maintenance" meets the compliance requirements of gdpr
Introduction to abnova's in vitro mRNA transcription workflow and capping method
MySQL service is missing from computer service
Paranoid unqualified company
main函数在import语句中的特殊行为
Non empty verification of collection in SQL
.net 5 FluentFTP连接FTP失败问题:This operation is only allowed using a successfully authenticated context
Config distributed configuration center
Sword finger offer high quality code
Academic report series (VI) - autonomous driving on the journey to full autonomy
随机推荐
Pass parent component to child component: props
Advantages of using net core / why
Exception of DB2 getting table information: caused by: com ibm. db2.jcc. am. SqlException: [jcc][t4][1065][12306][4.25.13]
Detailed explanation of transform origin attribute
Composition API premise
OOM(内存溢出)造成原因及解决方案
1090: integer power (multi instance test)
How Oracle backs up indexes
LC 面试题 02.07. 链表相交 & LC142. 环形链表II
Cloud backup project
Multithreading and high concurrency (9) -- other synchronization components of AQS (semaphore, reentrantreadwritelock, exchanger)
Fullgc problem analysis and solution summary
Kuboard无法发送邮件和钉钉告警问题解决
Select the product attribute pop-up box to pop up the animation effect from the bottom
Esxi attaching mobile (Mechanical) hard disk detailed tutorial
計算機服務中缺失MySQL服務
JDBC database connection pool usage problem
Flexible layout (I)
. Net 5 fluentftp connection FTP failure problem: this operation is only allowed using a successfully authenticated context
Explain Bleu in machine translation task in detail