develooper Front page | perl.beginners | Postings from December 2002

REGEXP help asap :)

Thread Next
Paul Kraus
December 20, 2002 06:30
REGEXP help asap :)
Message ID:
I have a 23,000 accounting error I have to find before 12 when my boss
comes in or one of my employees is going to get reamed. To but it

Here our two reg expr. The first returns all the data I need except data
that starts "~MISC~".

  if (/\s+(\w{4,4}00).+\s+([\d,.]+)/){ # $1 = /\w\w\w\w00
  if (/\s+((\w{4,4}00)||~MISC~)).+\s+([\d,.]+)/){ # same expression but
I need it to match if its \w\w\w\w00 or ~MISC~

Paul Kraus
Network Administrator
PEL Supply Company
216.267.5775 Voice
216-267-6176 Fax

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About