regex - Regular expression split and remove data -
i not specialist in regex , question may sound easy. have tab separated file thousands of columns , values in each column 2345:0 or 123:1
i remove before ":" , keep 1 or 0
can point me right regular expression can use see example ?
thank in advance
sounds in case simple replace of \d+: empty string do.
how done depends on tool. perl could:
perl -pe 's/\d+://g' file
Comments
Post a Comment