PIC

Homepage / Report Issue / Source Code / Mailing List / IRC Channel

Build Status

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

Copyright & License

Copyright (c) 2011 Trans, Rubyworks