Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Jul 17th, 2018
68
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.18 KB
| None
|
0
0
raw
download
clone
embed
print
report
let s = "PlaceName-244"
if let index = s.range(of: "-")?.upperBound {
let substring = s.suffix(from: index)
let number = String(substring)
print(number)
}
/*
Output: 244
*/
Add Comment
Please,
Sign In
to add comment
Public Pastes
RequestException: error with request [Errno 1...
Python | 50 sec ago | 2.88 KB
Black Hole Event Script [SISYPHUS SIMULATOR]
Lua | 8 min ago | 0.09 KB
take_out_the_trash
Python | 8 min ago | 2.59 KB
bin_metadata
Python | 8 min ago | 2.14 KB
requirements main_env
Bash | 10 min ago | 0.83 KB
HFM Launches Gadget Giveaway Trading Contest
PHP | 11 min ago | 1.25 KB
Python - sorting visualize
Python | 13 min ago | 0.99 KB
🤑 G2A.com Free Gift Card Guide Apr 2024 FIX 🤑
GetText | 30 min ago | 0.39 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!