I have tried this reg. expression in order to retrieve an email address. As i have little experience with that, i would like to ask you if you know what's wrong with it, since it doubles one word:
regexp = "(\\w+)(\\(at\\))((\\w+\\.)+)([a-z]{2,3})";
Supposing i have an input "madrugada(at)yahoo.co.uk", it gives out as a result [email protected] .
pattern = Pattern.compile (regexp);
m = pattern.matcher (my_input);
while (m.find()) {
for (int i=0; i<=m.groupCount(); i++)
// it would give out: madrugada (at) yahoo co co uk
}
Thank you