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

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

Serving Software Downloads in 956 Categories, Downloaded 49.480.962 Times

YAPE::Regex::Element 3.03

  Date Added: September 26, 2010  |  Visits: 948

YAPE::Regex::Element

Report Broken Link
Printer Friendly Version


Product Homepage
Download (92 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
USER REVIEWS
More Reviews or Write Review


YAPE::REGEX::ELEMENT RELATED
Development Editors  -  Adobe AIR Launchpad 1.0.1 Beta 2
Adobe® AIR® Launchpad beta is a new desktop tool that helps Adobe Flex® developers get started building desktop applications deployed on Adobe AIR. Simply run Adobe AIR Launchpad and select the capabilities you need; Adobe AIR Launchpad will...
1.3 MB  
Libraries  -  Locale::RecodeData::ISO_8859_14 1.16
Locale::RecodeData::ISO_8859_14 is a Perl module with conversion routines for ISO-8859-14. CHARACTER TABLE The following table is sorted in the same order as the original charmap. All character codes are in hexadecimal. Please read ISO-10646...
460.8 KB  
Programming  -  Orangutan-lib 0.3
Orangutan-lib is a small utility library to get new developers on the Orangutan family of robotic controllers from Pololu Robotics up and running.
358.4 KB  
Utilities  -  StackApplet 1.5.1
StackApplet is a small application that uses the new AppIndicator framework to display status updates and new information about your Stack Exchange accounts. It is fully multithreaded and offers an easy-to-use web-based configuration page.
133.12 KB  
Finance  -  Tabout 2.7 Build 9395
Tabout is a small tool that converts tabs to spaces in an ASCII text file. Usage : TABOUT Myfile.TXT Don't use it on word processor files. Assumes tab stops are 8 columns apart. Also trims ^Z and corrects any malformed CrLf line endings. NOTE:...
 
Finance  -  Turkish Typer 1.0
Turkish Typer is a small program that makes a little toolbar you can use to type Modern Turkish or Osmanli Turkish. You can use this toolbar to type Turkish symbols in other text processing applications. The Osmanli buttons are for people that...
 
Business  -  UTFCast Express 1.0.5.21
UTFCast is a small tool for Windows that lets you batch convert all text files to UTF-8 encoding. It can convert a directory full of text files and keep the whole directory structure intact. Just select the source directory, output destination,...
892 KB  
Business  -  VirtualGPS 1.50
VirtualGPS - is a free, small utility, which fully emulates GPS receiver and returns your location (by using cellular towers and wifi hotspots). Location accuracy is about 50-500m. TUTORIAL 1. Run VirtualGPS, wait less than 1 minute until GPS: ON...
195 KB  
Graphics Viewers  -  NFO2PNG PHP-Library 1.0
A small PHP Library to render a NFO-(DOS/IBM-ASCII)-Text to a PNG-File for displaying it in a Webbrowser.
13.43 KB  
Image Galleries  -  NFO2PNG PHP-Library 1.0
NFO2PNG PHP-Library is a small PHP Library to render a NFO-(DOS/IBM-ASCII)-Text to a PNG-File for displaying it in a Webbrowser.
 
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
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 4.0.0
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