当前位置:网站首页>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边栏推荐
- Algorithm --- bit count (kotlin)
- MySQL service is missing from computer service
- 非父子组件的通信
- Communication between non parent and child components
- Kuboard can't send email and nail alarm problem is solved
- Tumor immunotherapy research prosci Lag3 antibody solution
- Composition API premise
- Advanced level of C language (high level) pointer
- Paranoid unqualified company
- ViewModelProvider. Of obsolete solution
猜你喜欢

1089: highest order of factorial

Graduation design game mall

Release notes of JMeter version 5.5

LC interview question 02.07 Linked list intersection & lc142 Circular linked list II

RuntimeError: CUDA error: CUBLAS_ STATUS_ ALLOC_ Failed when calling `cublascreate (handle) `problem solving

How DHCP router works

CompletableFuture使用详解

Non empty verification of collection in SQL

About binary cannot express decimals accurately

Academic report series (VI) - autonomous driving on the journey to full autonomy
随机推荐
点亮显示屏的几个重要步骤
Answer to the second stage of the assignment of "information security management and evaluation" of the higher vocational group of the 2018 Jiangsu Vocational College skills competition
软件验收测试
计算机服务中缺失MySQL服务
Sqlmap tutorial (IV) practical skills three: bypass the firewall
Blue Bridge Cup Birthday candles (violence)
Project practice five fitting straight lines to obtain the center line
【mysqld】Can't create/write to file
Detailed explanation of transform origin attribute
SQLMAP使用教程(四)实战技巧三之绕过防火墙
freeswitch拨打分机号源代码跟踪
PostgreSQL source code (60) transaction system summary
leetcode 509. Fibonacci number
The startup of MySQL installed in RPM mode of Linux system failed
JS small exercise
LC interview question 02.07 Linked list intersection & lc142 Circular linked list II
1089: highest order of factorial
Use of completable future
Multidisciplinary integration
AVL树的实现