How to get the last match?

bange

Client
Регистрация
16.04.2011
Сообщения
37
Благодарностей
2
Баллы
8
i have something like this
<!+++++++>
<body>

code 234232
code 432123
code 938121
</body>

i want to get only the number of the end in this case 938121
but they are not 3 lines every time they are more
how to get only the last number?

i tried to put "last" in the number of match but got error "wrong value"


Thanks
 

joma

Client
Регистрация
06.03.2011
Сообщения
107
Благодарностей
13
Баллы
0
get dom from page
do regex for stuff between body returning 'all'
save to a file
count nº of strings in that saved file
read last value with 'take line from file pointed to result of count of strins..

i dont understand very well what u want to do but as per my understanding is this

hope it helps
 
  • Спасибо
Реакции: bange

step85

Client
Регистрация
19.02.2010
Сообщения
1 839
Благодарностей
287
Баллы
83

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)