当前位置:网站首页>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边栏推荐
- Pass parent component to child component: props
- Esxi attaching mobile (Mechanical) hard disk detailed tutorial
- Flexible layout (II)
- Unity C function notes
- Leetcode t1165: log analysis
- Abnova membrane protein lipoprotein technology and category display
- MySQL service is missing from computer service
- Paranoid unqualified company
- 云备份项目
- SQLMAP使用教程(四)实战技巧三之绕过防火墙
猜你喜欢
How can brand e-commerce grow against the trend? See the future here!
.net core 访问不常见的静态文件类型(MIME 类型)
sql中对集合进行非空校验
Kuboard can't send email and nail alarm problem is solved
How to do sports training in venues?
LC interview question 02.07 Linked list intersection & lc142 Circular linked list II
$parent(获取父组件) 和 $root(获取根组件)
Flexible layout (I)
How DHCP router works
异步组件和Suspense(真实开发中)
随机推荐
FullGC问题分析及解决办法总结
Fullgc problem analysis and solution summary
Databinding exception of kotlin
Multithreading and high concurrency (9) -- other synchronization components of AQS (semaphore, reentrantreadwritelock, exchanger)
Learning records on July 4, 2022
PostgreSQL source code (59) analysis of transaction ID allocation and overflow judgment methods
栈题目:有效括号的嵌套深度
软件验收测试
LC interview question 02.07 Linked list intersection & lc142 Circular linked list II
1089: highest order of factorial
[noi simulation] regional division (conclusion, structure)
Basic process of network transmission using tcp/ip four layer model
Sword finger offer high quality code
Reflection (II)
LC 面试题 02.07. 链表相交 & LC142. 环形链表II
Role of virtual machine
Project practice five fitting straight lines to obtain the center line
Please answer the questions about database data transfer
Asynchronous components and suspend (in real development)
Kuboard无法发送邮件和钉钉告警问题解决