Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 976 Categories, Downloaded 32.390.703 Times

YAPE::Regex::Element 3.03

  Date Added: September 26, 2010  |  Visits: 729


Report Broken Link
Printer Friendly Version

Product Homepage
Download (75 downloads)

YAPE::Regex::Element contains sub-classes for YAPE::Regex elements. SYNOPSIS use YAPE::Regex MyExt::Mod; # this sets up inheritence in MyExt::Mod # see YAPE::Regex documentation YAPE MODULES The YAPE hierarchy of modules is an attempt at a unified means of parsing and extracting content. It attempts to maintain a generic interface, to promote simplicity and reusability. The API is powerful, yet simple. The modules do tokenization (which can be intercepted) and build trees, so that extraction of specific nodes is doable. Methods for YAPE::Regex::Element This class contains fallback methods for the other classes. my $str = $obj->text; Returns a string representation of the content of the regex node itself, not any nodes contained in it. This is undef for non-text nodes. my $str = $obj->string; Returns a string representation of the regex node itself, not any nodes contained in it. my $str = $obj->fullstring; Returns a string representation of the regex node, including any nodes contained in it. my $quant = $obj->quant; Returns a string with the quantity, and a ? if the node is non-greedy. The quantity is one of *, +, ?, {M,N}, or an empty string. my $ng = $obj->ngreed; Returns a ? if the node is non-greedy, and an empty string otherwise. Methods for YAPE::Regex::anchor This class represents anchors. Objects have the following methods: my $anchor = YAPE::Regex::anchor->new($type,$q,$ng); Creates a YAPE::Regex::anchor object. Takes three arguments: the anchor (^, A, $, Z, z, B, b, or G), the quantity, and the non-greedy flag. The quantity should be an empty string. my $anc = YAPE::Regex::anchor->new(A, , ?); # /A?/ my $type = $anchor->type; Returns the string anchor. Methods for YAPE::Regex::macro This class represents character-class macros. Objects have the following methods: my $macro = YAPE::Regex::macro->new($type,$q,$ng); Creates a YAPE::Regex::macro object. Takes three arguments: the macro (w, W, d, D, s, or S), the quantity, and the non-greedy flag. my $macro = YAPE::Regex::macro->new(s, {3,5}); # /s{3,5}/ my $text = $macro->text; Returns the macro. print $macro->text; # s my $type = $macro->type; Returns the string macro. Methods for YAPE::Regex::oct This class represents octal escapes. Objects have the following methods: my $oct = YAPE::Regex::oct->new($type,$q,$ng); Creates a YAPE::Regex::oct object. Takes three arguments: the octal number (as a string), the quantity, and the non-greedy flag. my $oct = YAPE::Regex::oct->new(040); # / 40/ my $text = $oct->text; Returns the octal escape. print $oct->text; # 40 my $type = $oct->type; Returns the string oct. Methods for YAPE::Regex::hex This class represents hexadecimal escapes. Objects have the following methods: my $hex = YAPE::Regex::hex->new($type,$q,$ng); Creates a YAPE::Regex::hex object. Takes three arguments: the hexadecimal number (as a string), the quantity, and the non-greedy flag. my $hex = YAPE::Regex::hex->new(20,{2,}); # /x20{2,}/ my $text = $hex->text; Returns the hexadecimal escape. print $hex->text; # x20 my $type = $hex->type; Returns the string hex. Methods for YAPE::Regex::utf8hex This class represents UTF hexadecimal escapes. Objects have the following methods: my $hex = YAPE::Regex::utf8hex->new($type,$q,$ng); Creates a YAPE::Regex::utf8hex object. Takes three arguments: the hexadecimal number (as a string), the quantity, and the non-greedy flag. my $utf8hex = YAPE::Regex::utf8hex->new(beef,{0,4}); # /x{beef}{2,}/ my $text = $utf8hex->text; Returns the hexadecimal escape. print $utf8hex->text; # x{beef} my $type = $utf8hex->type; Returns the string utf8hex. Methods for YAPE::Regex::backref This class represents back-references. Objects have the following methods: my $bref = YAPE::Regex::bref->new($type,$q,$ng); Creates a YAPE::Regex::bref object. Takes three arguments: the number of the back-reference, the quantity, and the non-greedy flag. my $bref = YAPE::Regex::bref->new(2,,?); # /2?/ my $text = $bref->text; Returns the backescape. print $bref->text; # 2 my $type = $bref->type; Returns the string backref. Methods for YAPE::Regex::ctrl This class represents control character escapes. Objects have the following methods: my $ctrl = YAPE::Regex::ctrl->new($type,$q,$ng); Creates a YAPE::Regex::ctrl object. Takes three arguments: the control character, the quantity, and the non-greedy flag. my $ctrl = YAPE::Regex::ctrl->new(M); # /cM/ my $text = $ctrl->text; Returns the control character escape. print $ctrl->text; # cM my $type = $ctrl->type; Returns the string ctrl. Methods for YAPE::Regex::named This class represents named characters. Objects have the following methods: my $ctrl = YAPE::Regex::named->new($type,$q,$ng); Creates a YAPE::Regex::named object. Takes three arguments: the name of the character, the quantity, and the non-greedy flag. my $named = YAPE::Regex::named->new(GREEK SMALL LETTER BETA); # /N{GREEK SMALL LETTER BETA}/ my $text = $named->text; Returns the character escape text. print $named->text; # N{GREEK SMALL LETTER BETA} my $type = $named->type; Returns the string named..

Requirements: No special requirements
Platforms: Linux
Keyword: Beta Greek Greek Small Letter Beta Letter Libraries New Programming Quantity Returns String Text Type Yape Yaperegexelement
Users rating: 0/10

License: Freeware Size: 153.6 KB
More Reviews or Write Review

Arcade Style Games  -  Rosetta Stone 1.1
Rosetta Stone, whether you're playing Greek number mode or Egyptian letter mode, the number one rule to keep in mind is keeping the scales balanced, but it's not that easy. As you try to gain points by completing equations or words, blocks drop...
8.2 MB  
Libraries  -  Geography::Countries 1.4
Geography::Countries is a Perl module with 2-letter, 3-letter, and numerical codes for countries. SYNOPSIS use Geography::Countries; $country = country DE; # Germany @list = country 666; # (PM, SPM, 666, # Saint Pierre and Miquelon, 1)...
9.22 KB  
Network & Internet  -  Cherokee 0.6.0 Beta 1
Cherokee is a flexible, very fast, lightweight Web server. It is implemented entirely in C, and has no dependencies beyond a standard C library. Cherokee is a lightweight Web server and most of all flexible. It is embeddable and extensible...
1.5 MB  
Shell & Desktop  -  spell-karamba 0.2
spell-karamba is a desktop applet for SuperKaramba that spells the typed words - letter by letter. You can choose from deutsch, english, american, international and NATO spelling. Installation: Actually the installation is pretty easy:...
17.41 KB  
Teaching Tools  -  SightWords Kindergarten 1.0
SightWords Kindergarten is an application for learning most frequently used English words without sounding them out letter by letter. The Kindergarten version features 8 levels, A to H, with different sets of words. "Ask the Bee" button plays...
1.3 MB  
MP3 Tools  -  ECTlistener 2.7.2
ECTistener is AAC (Augmentative and Alternative Communication) software, created and developed by EyeComTec ( ECTlistener is intended to analyze sound signals from any microphone. Depending on the length and volume of the...
1.88 MB  
Programming  -  iso3166 0.1
ISO 3166-1 defines two-letter, three-letter, and three-digit country codes. python-iso3166 is a self-contained module that converts between these codes and the corresponding country name. Installation $ pip install iso3166
10.24 KB  
Communication Tools  -  ECTkeyboard 31.3.2
ECTkeyboard is an AAC (Alternative and Augmentative Communication) program that allows individuals with reduced motor skills to type text letter-by-letter via pressing only one physical button. The program can be coupled with eye tracking...
2.86 MB  
Games  -  HANGMAN - The Classic Word Game 1.0.4
*** The classic HANGMAN game is available on your iPhone/iPad at last! *** Guess each word letter by letter to avoid a grisly fate... When you've mastered that, compete against your friends with two different game modeschallenge each other...
14.2 MB  
Education  -  Hindi Ninja 1.2
Hindi Ninja is an application which helps you to increase your reading speed. You will learn to recognize sight words and no longer be dependent on reading words letter by letter. This is an efficient technique and reading speed will increase...
6.4 MB  
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  Math::GMPf 0.29
Math::GMPf - perl interface to the GMP library's floating point (mpf) functions.
30.72 KB  
Programming  -  Net::Wire10 1.08
Net::Wire10 is a Pure Perl connector that talks to Sphinx, MySQL and Drizzle servers. Net::Wire10 implements the low-level network protocol, alias the MySQL wire protocol version 10, necessary for talking to one of the aforementioned...
30.72 KB  
Programming  -  logilab-common 0.56.2
a bunch of modules providing low level functionnalities shared among some python projects devel Please note that some of the modules have some extra dependencies. For instance, logilab.common.db will require a db-api 2.0 compliant...
174.08 KB  
Programming  -  OpenSSL for linux 1.0.0a
The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a...
3.83 MB  
Libraries  -  wolfSSL 3.15.3
The wolfSSL embedded SSL/TLS library is a lightweight SSL library written in ANSI standard C and targeted for embedded and RTOS environments - primarily because of its small size, speed, and feature set. It is commonly used in standard operating...
3.88 MB  
Libraries  -  EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
10.68 MB  
Libraries  -  Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable.
5.35 KB  
Libraries  -  Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;...
8.19 KB  
Libraries  -  sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also...
10.24 KB