Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'pattern for MD5-hash' topicStudent Support Forum > General > Archives > "pattern for MD5-hash"

Next Comment >Help | Reply To Topic
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: ,

Subject (listing for 'pattern for MD5-hash')
Author Date Posted
pattern for MD5-hash newbie 02/15/13 10:01am
Re: pattern for MD5-hash Bill Simpson 02/15/13 10:42pm
Re: Re: pattern for MD5-hash newbie 02/16/13 2:44pm
Re: pattern for MD5-hash Bill Simpson 02/16/13 9:34pm
Re: Re: pattern for MD5-hash newbie 02/18/13 02:49am
Next Comment >Help | Reply To Topic