<commit_before># PIC

[Homepage](http://rubyworks.github.com/pic) /
[Report Issue](http://github.com/rubyworks/pic/issues) /
[Source Code](http://github.com/rubyworks/pic) /
[Mailing List](http://groups.google.com/rubyworks-mailinglist) /
[IRC Channel](http://chat.us.freenode.net/rubyworks)

[![Build Status](https://secure.travis-ci.org/rubyworks/pic.png)](http://travis-ci.org/rubyworks/pic)


## Description

PIC is pattern matching system roughly based on Cobol Pictures. It serves
as an alternative to Regular Expressions for common data format needs.


## Examples

    PIC['Z.99'].to_re  #=> /\d*\.\d\d/


## Status

Currently PIC is very much in a state of "design development". It will take
some time to workout the best correlations between picture and regular
expression. Suggestions and patches welcome.


## Reference Material

* [Edited Pictures](http://www.csis.ul.ie/cobol/course/EditedPics.htm)


## Copyright & License

Copyright (c) 2011 Trans, Rubyworks
<commit_msg>Update README. [doc]<commit_after>[Homepage](http://rubyworks.github.com/pic) /
[Report Issue](http://github.com/rubyworks/pic/issues) /
[Mailing List](http://groups.google.com/rubyworks-mailinglist) /
[IRC Channel](http://chat.us.freenode.net/rubyworks) /
[Source Code](http://github.com/rubyworks/pic) /
( [![Build Status](https://secure.travis-ci.org/rubyworks/pic.png)](http://travis-ci.org/rubyworks/pic) )


# PIC

PIC is pattern matching system roughly based on Cobol Pictures. It serves
as an alternative to Regular Expressions for common data format needs.


## Usage

Here is a simply example.

~~~ruby
    PIC['Z.99'].to_re  #=> /\d*\.\d\d/
~~~


## Status

Currently PIC is very much in a state of "design development". It will take
some time to workout the best correlations between picture and regular
expression. Suggestions and patches welcome!


## Installation

Per the usual RubyGems way:

    $ gem install pic


## Reference Material

* [Edited Pictures](http://www.csis.ul.ie/cobol/course/EditedPics.htm)


## Copyright & License

PIC is copyrighted free software.

    Copyright (c) 2011 Rubyworks (BSD-2-Clause Licensed)

PIC is freely redistributable and modifiable in accordance with the
[BSD-2-Clause](http://spdx.org/licenses/bsd-2-clause) license.

See LICENSE.txt for details.
{'fraction_non_alphanumeric': 0.13693850850414305, 'fraction_numerical': 0.0065416484954208464, 'mean_word_length': 4.166666666666667, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6211508', 'n_tokens_mistral': 778, 'n_tokens_neox': 726, 'n_words': 201}