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 50.446.345 Times

Regexp::Ignore 0.03

  Date Added: March 17, 2010  |  Visits: 929

Regexp::Ignore

Report Broken Link
Printer Friendly Version


Product Homepage
Download (87 downloads)



Regexp::Ignore is a Perl module that let us ignore unwanted parts, while parsing text. WARNING This is an alpha code. Really. It was written in the end of 2001. It is not yet checked much. The only reason I submit it to CPAN that early is to get feedback about the idea, and hopefully to get some help in finding the many bugs that must still be in it. In our company we use this code, though, and for our needs it runs well. SYNOPSIS use Regexp::IgnoreXXX; my $rei = new Regexp::IgnoreXXX($text, ""); # split the wanted text from the unwanted text $rei->split(); # use substitution function $rei->s((var)_(d+), $2$1, gi); $rei->s((d+):(d+), $2:$1); # merge back to get the resulted text my $changed_text = $rei->merge(); Markup languages, like HTML, are difficult to parse. The reason is that you can have a line like: < font size=+1 >H< /font >ello < font size=+1 >W< /font >orld How can we find the string "Hello World", in the above line, and replace it by "Hello Universe" (which is a lot deeper)? Or how can we run a speller on the text and replace the mistakes with suggestions for the correct spelling? This module come to help you doing exactly that. Actually the module let you first split the text to the parts you are interested in and the unwanted parts. For example, all the HTML tags can be taken as unwanted parts. Then it let you parse the part you are interested in (while totally ignoring the unwanted parts). In the end it let you merge back the unwanted parts with the possibly changed parts you were interested in. There is just one catch. It uses the assumption that when you replace the above "Hello World" to "Hello Universe", all the unwanted parts between the start of the match to the end of the match, will be pushed after the text that will replace the match. This is not really understood right? Look at the example: The text: < font size=+1 >H< /font >ello < font size=+1 >W< /font >orld will be first split and we will get the "cleaned" text: Hello World Then we can parse it using something like: s/Hello World/Hello Universe/; This will give us the changed "cleaned" text: Hello Universe When we will merge with the unwanted parts we will get < font size=+1 >Hello Universe< /font >< font size=+1 >< /font > So, the unwanted parts in the match were pushed after the replacer..

Requirements: No special requirements
Platforms: Linux
Keyword: Font Font Size Hello Hello Universe Hello World Let Us Libraries Module Parts Perl Module Programming Regexpignore Text Unwanted
Users rating: 0/10

License: Freeware Size: 71.68 KB
USER REVIEWS
More Reviews or Write Review


REGEXP::IGNORE RELATED
Utilities  -  Apache Hello World Benchmarks 1.04
Apache Hello World Benchmarks is a benchmarking tool that seeks to give a sense of Web application execution speed on various software platforms running under the Apache Web server. Benchmarks can vary greatly from system to system, so this tool...
37.89 KB  
Utilities  -  Make Address Bar Font Size Bigger 1.1.0
This extension makes the URL Address Bar font size bigger.The font size for the URL Address Bar's autocomplete dropdown will also be bigger. Great for users who have higher screen resolutions and bad eyesight. No need to know CSS or any hand...
10.24 KB  
Web Browser Tools  -  Theme Font Size Changer for Linux 0.3
Theme Font & Size Changer is a simple browser tool that lets you change the font size and font family of Firefox. It is especially valuable tool for visually impaired people and wide screen users.
30.72 KB  
Network & Internet  -  Theme Font & Size Changer 3.2
Theme Font & Size Changer is a simple browser tool that lets you change the font size and font family of Firefox. It is especially valuable tool for visually impaired people and wide screen users.
614.4 KB  
Web Browsers  -  Theme Font Size Changer 1.0
Congratulations! Theme Font Size Changer installed successfully. Other than installing the extension, you don???*a*?t need anything more to use the add-on. Theme Font Size Changer is a simple to let you increase the font-size of the...
10.24 KB  
Modules  -  eFont Size 0.0.2
It changes the font size of the entire body so it might not work with certain themes.InstallationUnpack and upload it to the /wp-content/plugins/ directory.Activate the plugin through the 'Plugins' menu in WordPress. Requirements: - WordPress 2.5...
 
Networking  -  font-resizer 1.1.7
This plugin allows you to give the visitors of your site the option to change the font size. The plugin acts over jQuery and saves the settings in a cookie. So the visitor see the same font size if they revisit your site. Which content is going...
10 KB  
Libraries  -  GD::Graph::Polar 0.15
GD::Graph::Polar is a Perl module to make polar graph using GD package. SYNOPSIS use GD::Graph::Polar; my $obj=GD::Graph::Polar->new(size=>480, radius=>100); $obj->addPoint (50=>25); $obj->addPoint_rad (50=>3.1415); $obj->addGeoPoint...
47.1 KB  
Libraries  -  PurpleWiki::InlineNode 0.94
PurpleWiki::InlineNode Perl module offers inline node object. SYNOPSIS use PurpleWiki::InlineNode; # Create node of type text and content Hello, world! my $inlineNode1 = PurpleWiki::InlineNode->new(type => text, content => Hello, world!);...
143.36 KB  
Libraries  -  Locale::TextDomain 1.16
Locale::TextDomain is a Perl Interface to Uniforum Message Translation. SYNOPSIS use Locale::TextDomain (my-package, @locale_dirs); use Locale::TextDomain qw (my-package); my $translated = __"Hello World!n"; my $alt = $__{"Hello...
460.8 KB  
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