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.205.221 Times

ShiftJIS::Regexp 1.00

  Date Added: May 24, 2010  |  Visits: 1.161

ShiftJIS::Regexp

Report Broken Link
Printer Friendly Version


Product Homepage
Download (99 downloads)



ShiftJIS::Regexp contains regular expressions in Shift-JIS. SYNOPSIS use ShiftJIS::Regexp qw(:all); match($string, p{Hiragana}{2}p{Digit}{2}); match($string, pH{2}pD{2}); # these two are equivalent: This module provides some functions to use regular expressions in Shift-JIS on the byte-oriented perl. The legal Shift-JIS character in this module must match the following regular expression: [x00-x7FxA1-xDF]|[x81-x9FxE0-xFC][x40-x7Ex80-xFC] To avoid false matching in multibyte encoding, this module uses anchoring technique to ensure each matching position places at the character boundaries. cf. perlfaq6, "How can I match strings with multibyte characters?" Functions re(PATTERN) re(PATTERN, MODIFIER) Returns a regular expression parsable by the byte-oriented perl. PATTERN is specified as a string. MODIFIER is specified as a string. Modifiers in the following list are allowed. i case-insensitive pattern (only for ascii alphabets) I case-insensitive pattern (greek, cyrillic, fullwidth latin) j hiragana-katakana-insensitive pattern (but halfwidth katakana are not considered.) s treat string as single line m treat string as multiple lines x ignore whitespace (i.e. [x20nrtf]) unless backslashed or inside a character class; but comments are not recognized! o once parsed (not compiled!) and the result is cached internally. o modifier while ( ) { print replace($_, (perl), $1, igo); } is more efficient than while ( ) { print replace($_, (perl), $1, ig); } because in the latter case the pattern is parsed every time whenever the function is called. match(STRING, PATTERN) match(STRING, PATTERN, MODIFIER) An emulation of m// operator aware of Shift-JIS. But, to emulate @list = $string =~ m/PATTERN/g, the pattern should be parenthesized (capturing parentheses are not added automatically). @list = match($string, pH, g); # wrong; returns garbage! @list = match($string,(pH),g); # good PATTERN is specified as a string. MODIFIER is specified as a string. i,I,j,s,m,x,o please see re(). g match globally z tell the function the pattern matches an empty string (sorry, due to the poor auto-detection) replace(STRING or SCALAR REF, PATTERN, REPLACEMENT) replace(STRING or SCALAR REF, PATTERN, REPLACEMENT, MODIFIER) An emulation of s/// operator but aware of Shift-JIS. If a reference to a scalar is specified as the first argument, substitutes the referent scalar and returns the number of substitutions made. If a string (not a reference) is specified as the first argument, returns the substituted string and the specified string is unaffected. MODIFIER is specified as a string. i,I,j,s,m,x,o please see re(). g,z please see match(). jsplit(PATTERN or ARRAY REF of [PATTERN, MODIFIER], STRING) jsplit(PATTERN or ARRAY REF of [PATTERN, MODIFIER], STRING, LIMIT) An emulation of CORE::split but aware of Shift-JIS. In scalar/void context, it does not split into the @_ array; in scalar context, only returns the number of fields found. PATTERN is specified as a string. But as PATTERN has no special meaning; it splits the string on a single space similarly to CORE::split / /. When you want to split the string on whitespace, pass an undefined value as PATTERN or use the splitspace() function. jsplit(undef, " x81x40 This is x81x40 perl."); splitspace(" x81x40 This is x81x40 perl."); # (This, is, perl.) If you want to pass pattern with modifiers, specify an arrayref of [PATTERN, MODIFIER] as the first argument. You can also use "Embedded Modifiers"). MODIFIER is specified as a string. i,I,j,s,m,x,o please see re(). splitspace(STRING) splitspace(STRING, LIMIT) This function emulates CORE::split( , STRING, LIMIT). It returns a list given by split STRING on whitespace including "x81x40" (IDEOGRAPHIC SPACE). Leading whitespace characters do not produce any field. Note: splitspace(STRING, LIMIT) is equivalent to jsplit(undef, STRING, LIMIT). splitchar(STRING) splitchar(STRING, LIMIT) This function emulates CORE::split(//, STRING, LIMIT). It returns a list given by split of STRING into characters. Note: splitchar(STRING, LIMIT) is equivalent to jsplit(, STRING, LIMIT)..

Requirements: No special requirements
Platforms: Linux
Keyword: Core Jis Libraries Limit Match Modifier Pattern Ref Regular Regular Expressions Shiftjis Shiftjisregexp Specified String
Users rating: 0/10

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


SHIFTJIS::REGEXP RELATED
Libraries  -  Tie::Hash::RegexKeys 1.2
Tie::Hash::RegexKeys will match hash keys using Regular Expressions. SYNOPSIS use Tie::Hash::RegexKeys; use Data::Dumper; my %h; tie %h, Tie::Hash::RegexKeys; my $a = .1.2.3.4.5.6.2; my $b = .1.2.3.4.5.7; my $c = .1.2.3.4.5.6.1; my...
3.07 KB  
Libraries  -  GNU Classpath 0.95
GNU Classpath (essential libraries for Java) is a project to create free core class libraries for use with virtual machines and compilers for the Java programming language. GNU Classpath project includes all native methods and core classes...
6.5 MB  
Libraries  -  Mptn 0.3.0
Mptn project is a library providing a pattern matching mechanism similar to regular expressions, but with several differences making it more suitable for building a morphological analyzer. Differences are: - The whole string is matched against...
102.4 KB  
Text Management  -  Regular expression point of failure 1.1
This script debugs non-matching regular expressions by finding out the maximum parts of the pattern and the text that do match.
 
Log Analyzers  -  LMF 0.5
LMF project is a flexible log monitoring framework that allows the user to match text from log files, using perl regular expressions and capturing parentheses (pattern). An optional external command (trigger) will be executed when a...
16.38 KB  
Libraries  -  perlrecharclass 5.9.5
perlrecharclass package contains Perl regular expression character classes. The top level documentation about Perl regular expressions is found in perlre. This manual page discusses the syntax and use of character classes in Perl Regular...
14.8 MB  
File Management  -  Flexible directory walking 1.1
This function walks a directory tree starting at a specified root folder, and returns a list of all of the files (and optionally folders) that match our pattern(s).The standard match our tree function os.path.walk can be confusing, and is...
 
Libraries  -  Regexp::Assemble 0.28
Regexp::Assemble is Perl module to assemble multiple Regular Expressions into a single RE. SYNOPSIS use Regexp::Assemble; my $ra = Regexp::Assemble->new; $ra->add( ab+c ); $ra->add( ab+- ); $ra->add( awd+ ); $ra->add( ad+ ); print...
81.92 KB  
Time & Clock Tools  -  Search & Replace Master 1.2
Search & replace the text in your files in seconds. A free software from KnowleSys. Search & Replace Master is an easy to use search and replace utility loved by webmasters, programmers, and novice computer users alike. Search & Replace...
486.91 KB  
Libraries  -  Regexx 0.98.1
Regexx is a complete regular expressions C++ solution. Regexx implements easy expression execution, global searching, replace with atom substitution, customized replaces, easy match/atom string retrieving, and splitting strings with strings or...
419.84 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