Results 1 to 5 of 5

Thread: Censorship (no, its not another free speech rant)

  1. #1

    Thread Starter
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682

    Censorship (no, its not another free speech rant)

    This week I 'ave been mostly learning about regular expressions.

    I've written an app that loads a file, strips out sensitive data like email addresses and phone numbers and deposites a new file containing the remaining 'censored' data.

    Could this be practically useful to anyone? Press releases for big companies or anything? I've got the source if you want it

    note: it does NOT keep or store the stripped out data, that would be naughty.
    I don't live here any more.

  2. #2
    Super Moderator manavo11's Avatar
    Join Date
    Nov 2002
    Location
    Around the corner from si_the_geek
    Posts
    7,171
    I have been looking at Regular Expressions. Are you planning to post it?


    Has someone helped you? Then you can Rate their helpful post.

  3. #3

    Thread Starter
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682
    Probably. Watch this space.
    I don't live here any more.

  4. #4
    Super Moderator manavo11's Avatar
    Join Date
    Nov 2002
    Location
    Around the corner from si_the_geek
    Posts
    7,171
    I will


    Has someone helped you? Then you can Rate their helpful post.

  5. #5

    Thread Starter
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682
    OK, here it is. The reason it looks a bit crap is because it is a bit crap. I've been re-fiddling a few bits here and there and the result is a very much stripped down version of the finished prog.

    There is a test file in the code directory that you can load from the program (click the "Choose File" menu item).

    Then check the options you want to censor from the file using the checkboxes.

    Then hit the "Run" menu item. The censored code will appear in the botton textbox, ready for saving to file (via menu).

    NOTE I havent defined regex expressions for Money or Phone numbers yet, but the rest seem to be OK. The constants at the top of the code are the expressions to fiddle with.

    Give it a go, let me know what you think
    I don't live here any more.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width