Remove only special characters and junk characters from a file

Discussion in 'Perl' started by rvino, Aug 14, 2007.

  1. rvino

    rvino

    Joined:
    Aug 14, 2007
    Messages:
    3
    Likes Received:
    0
    hi
    i want to know , how to remove only special characters(- , \ ]) and junk characters(<< >> . etc) from a file without removing white spaces and any other charac or numbers and also not affecting the file formats


    PG TEMPLATE SSN PATIENTDOB PATIENTNAME ADDRESS1 HOMEPH WORKPH SEX MARITAL MEDREC RELNAME EMERGPH1 GUARANTOR GUARADDRS1 GUARZIP EMPNAME ADDRESS2 EMPZIP GUAREMPLOYER GUARADDRS2 GUAREMPZIP INS1POLNO INS1GRPNO INS2POLNO INS2GRPNO
    2 PR-PN-BSI-CHG-ERMA1 **? t if f n 98364983 PANARESE.JOSEPH S 98364 c/, I/O, PAT HPK LEFKOWITZ, DAVID 98364983 98364 / / U J

    3 PR-PN-BSI-CHG-ERMA1 7 MD N m D 102 PAT HPK M 98364 Date / Signature N 98364 I I fl I
    4 PR-PN-BSI-CHG-ERMA1 . / r m D UJ FtlCH.I 98365 Date / -s 4 98365 Slgnafure 4
    5 PR-PN-BSI-CHG-ERMA1 / MD m D 04 IZSAK.CARL Acute Pain Management Assessment Form 98365 / MD ery IZSAK.CARL 04/76/1940 98365 M.

    6 PR-PN-BSI-CHG-ERMA1 _ MD I m w / {I "s. /? w J t 1 •Signature J •Signature I
    7 PR-PN-BSI-CHG-ERMA1 ,' 7. 7 . m $ 07 DRESCH .WALTER Acute Pain Management Assessment Form 98365 rL i -U 98365 C r>. i Pharmacological Only D or Non-Pharmacological D f
    8 PR-PN-BSI-CHG-ERMA1 .- / i m. D 9836.5211 PATSP 98365 { i u 98365 t 1 t 1

    9 PR-PN-BSI-CHG-ERMA1 ^ / d 6630 F PA 98365 oPh S ign a ture,^"-"*1^ t 98365 Jf > Jf >
    10 PR-PN-BSI-CHG-ERMA1 1 ? 1 m D 97-44-44 MEROLA.MICHAEL PATH 98365 ? r »t« 98365 jl, c^sk Vic^r t jl, c^sk Uc^r- t

    11 PR-PN-BSI-CHG-ERMA1 --1 ( -~v t s j* 9836* Non /tk / .«- / ? (^ r 9836* ve /- Ne L
    12 PR-PN-BSI-CHG-ERMA1 I* r ling hj r M R M Acute Peiin Management Assessment Form 98365 w i *ii i 98365 j ain Consult
     
    rvino, Aug 14, 2007
    #1
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.