| Author |
Comment/Response |
newbie
|
02/15/13 10:01am
Hi, i've got a txt file (test.txt) on my PC which contains, amongst other textual passages and data, text such as
'9ad3f9a2dd55f020f25282e72c0e9d2b:6f'
and i would like Mma to extract all such instances, output should be either
{'9ad3f9a2dd55f020f25282e72c0e9d2b:6f', '856c66d4c5e84ad899da266a15a85f25:40', (etc. etc.)}
or more explicit:
{9ad3f9a2dd55f020f25282e72c0e9d2b, 856c66d4c5e84ad899da266a15a85f25, (etcetc)}
Basically these are MD5-hash codes, i.e. 32-digit hexadecimal numbers. So I want to extract all 32-digit hex numbers from test.txt
I've begun with
test = Import["test.txt", "String"]
and my next Mma command would be
StringCases[test, pattern]
i guess?
Please help, thanks!!
URL: , |
|