Yoko

All sides of Injection
It is currently 2025-11-23 19:51:31

All times are UTC+02:00




Post new topic  Reply to topic  [ 1 post ] 
Author Message
PostPosted: 2008-01-06 06:40:08 
Offline

Joined: 2007-04-26 23:35:15
Posts: 220
Всем привет.
Есть строка в журнале инжекта
Code:
You have 10000 karma and 5398 fame, 10574 points and 4484 credits

Нужно из етой строки вытащить значение фамы, кармы, поинтов и кредитов.
Все бы хорошо, только есть одно НО:
Значение кармы от 1 до 6 знаков, поинтов от 1 до 6 и тд.. Соответсвенно длина строки при разных значениях кармы, фамы и тд будет меняться. В случае с одной переменной все просто. а как быть с четырьмя*

вопрос такой. как обрезать текст чтобы вытащить значения 4 переменных?


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 1 post ] 

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited