<div>Not a direct Linux issue, but I do run this process under Linux.</div>
<div>&nbsp;</div>
<div>I have a perl script to process some data with many records of the form -</div>
<div>&#39;User xxxxxx transfered 123456kb of file&nbsp;yyyyyy at cost of $1,234.56 to machine zzzzz&#39;</div>
<div>&nbsp;</div>
<div>This example is a bit made up but it illustrates the point. I am trying to extract the numbers for&nbsp;the kb and $.</div>
<div>&nbsp;</div>
<div>My perl RE to get the kb is m/ (\d+)kb / and this works as it gets the leading/trailing blanks and the numeric kb item into $1 variable.</div>
<div>However, for the money item, I tried m/ $([\d,.]+) / but the $ gets used to indicate the end of record. Escaping it with backslash dosn&#39;t work either as it then seems to get interpreted as the start of a scalar&nbsp;variable. How do I specify a literal $&nbsp;in the RE?</div>

<div>&nbsp;</div>
<div>This data extraction requirement&nbsp;must be a common one and been solved before. I have not been able to locate a solution.</div>
<div>Can anyone help to resolve this please.</div>
<div>&nbsp;</div>
<div>Peter</div>