Thread
:
Template: Extracting a number from a string
View Single Post
06-24-2021, 09:13 PM
#
2
davidfor
Grand Sorcerer
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
You can get that number with regex. The following should return it.
Code:
program: re_group($#kobobookmark, '.*\/file(\d+).*')
I'll let you include it in your template and sort out the formatting
davidfor
View Public Profile
Find More Posts by davidfor
Track Posts by davidfor via RSS