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
    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. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Radovan Garabik

    Re: remove special characters from line

    Radovan Garabik, Jul 1, 2003, in forum: Python
    Replies:
    0
    Views:
    679
    Radovan Garabik
    Jul 1, 2003
  2. Rainy
    Replies:
    6
    Views:
    274
    Terry Reedy
    Oct 3, 2006
  3. Index

    remove junk charecters

    Index, Oct 6, 2006, in forum: C++
    Replies:
    4
    Views:
    400
    Index
    Oct 6, 2006
  4. bintom
    Replies:
    6
    Views:
    306
    Sprechen sie C++
    Mar 10, 2011
  5. wong_powah@yahoo.ca

    remove special characters in front of the file names

    wong_powah@yahoo.ca, Jan 8, 2008, in forum: Perl Misc
    Replies:
    8
    Views:
    187
    wong_powah@yahoo.ca
    Jan 9, 2008
Loading...

Share This Page