All pastes #827893 Raw Edit

Unnamed

public text v1 · immutable
#827893 ·published 2007-12-22 02:26 UTC
rendered paste body
/me is useless at programming :(

I need to run a regex on the list to transform from like:


5	Rich Farmbrough	176393
6	Bearcat	150656
7	Charles Matthews	133353


to:

# [[User:Rich Farmbrough|Rich Farmbrough]] 176393
# [[User:Bearcat|Bearcat]] 150656
# [[User:Charles Matthews|Charles Matthews]] 133353

There is already an example of regex  which I've found:

string regexStr = @"# (?<name>.*[A-Za-z0-9æ²先生!@\(\)\-,\.\:\?]) (?<count>[0-9]*)$";
string replacement = @"# [[User:${name}|${name}]] ${count}";