i can usually hack my way through regular expressions, but this is troubling me.
here is a sample of text i'm working with:
this regex does not work to replace the number:
sed -e 's/time:[0-9]+;/time:99;/' testsed.txt
but this does:
sed -e 's/time:[0-9]*;/time:99;/' testsed.txt
why? as far as i knew, '+' means match 1 or more times. '*' means match any number of times, including none. wouldn't using a '*' cause an empty time field to be filled in with the replacement value? i wouldn't want that to happen...