|
|
|
Поиск "строки" в строке
|
|||
|---|---|---|---|
|
#18+
Господа бывалые! Помогите новичку, ПЛИИИИЗ! Есть текстовый файл(html) , состоящий из множества строк, в котором нужно найти строки с определенным сочетанием символов (задано), затем найти число в этой же строке и поместить эти данные в файл вывода данных. Вопрос. Каким оператором можно сравнить данные в исходном файле с нужным? т.е. например есть файл: "klsdfgasl;kh 564684 slkgaskl;hgeiourqp 87987 klvnxlcvknjl;askj 68789 lask;ho;igu 365847687 sklahasguio 5797 asgiasopdig 87 sa;iogh 54687 ", а нужно найти строки, где встречаются комбинации "aso" например и выдрать цифру из этой строки. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 18.02.2006, 12:33:20 |
|
||
|
Поиск "строки" в строке
|
|||
|---|---|---|---|
|
#18+
VbCompareMethod (Object Browser) The VbCompareMethod enumeration contains constants used to determine the way strings are compared when using the Instr and StrComp functions. These constants can be used anywhere in your code. InStr([start, ]string1, string2[, compare]) Function Returns a Variant (Long) specifying the position of the first occurrence of one string within another. StrComp(string1, string2[, compare]) Function Returns a Variant (Integer) indicating the result of a string comparison. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 18.02.2006, 16:07:32 |
|
||
|
|

start [/forum/topic.php?fid=60&gotonew=1&tid=2166353]: |
0ms |
get settings: |
7ms |
get forum list: |
9ms |
check forum access: |
2ms |
check topic access: |
2ms |
track hit: |
168ms |
get topic data: |
8ms |
get first new msg: |
4ms |
get forum data: |
2ms |
get page messages: |
27ms |
get tp. blocked users: |
1ms |
| others: | 186ms |
| total: | 416ms |

| 0 / 0 |
