Specials
Top sellers

JPRegex

JPRegex
Product Code: jpregex
Availability: In Stock
Built for: JPRegex is a cross-platform LUA regex engine
Product Version: 3.0
Online Demo: http://www.julien-pierron.com/sample?sample=jpregexsample
Forum Link: http://www.shiva-engine.com/forum/viewtopic.php?f=82&t=29258
Req. ShiVa Version: ShiVa 1.9.2 Engines
Plugin Platform Compatibility: iOS, Android, WinRT ARM/Phone 8, WinRT x86/_64, Windows Legacy, Mac OS X, Linux, Flash, Web Browser, Palm, Marmalade, BlackBerry, Windows Phone 7, Playstation 3, Playstation 4, Xbox 360, Xbox One, Wii, tvOS
Price: $26.00
Seller information: Julien Pierron
Country: France, Metropolitan
Company: Julien Pierron
Qty:     - OR -   Wish List
Compare
JPRegex is a LUA regex engine that will allow you to work with regular expressions in ShiVa. As it is all done in LUA, it will work on any platform a ShiVa game can be exported to, without worries about compatibility.

You will find below the list of what JPRegex currently supports :

--------------------------------------------------------------------------------------------------------------
CHARACTER CLASSES
A : character
[ABC] : character set
[^ABC] : negated set
[A-Z] : range
. : any character (except new line if flag 's' is not set)

ESCAPED CHARACTERS
\+ : match a reserved character (+*?^$\.[]{}()|/)
\t : tabulation character
\n : line feed character
\w : word -> (alphanumeric & underscore, no accented characters). Equivalent to [A-Za-z0-9_]
\W : not word -> Matches any character that is not a word character (alphanumeric & underscore). Equivalent to [^A-Za-z0-9_]
\d : digit -> equivalent to [0-9]
\D : not digit -> equivalent to [^0-9]
\s : a white space or tab or line break
\S : not a white space or tab or line break

ANCHORS
^ : beginning
$ : end

GROUPS AND REFERENCES
(ABC) : capturing group

QUANTIFIERS AND ALTERNATION
+ : 1 or more of the preceding token, as much as possible
* : 0 or more of the preceding token, as much as possible
{1} or {1,3} or {3,} or {,3} : quantifier for the preceding token
? : optional -> quantity of 0 or 1 of the preceding token
? : lazy -> makes the preceding quantifier lazy, causing it to match as few characters as possible.
(A|Z) : alternation -> | acts like a OR boolean. The patterns will be tested in order

POSIX notations :
[[:punct:]] : not whitespace, letters or numbers
[[:lower:]] : Equivalent to [a-z]
[[:upper:]] : Equivalent to [A-Z]
[[:alnum:]] : Equivalent to [A-Za-z0-9]
[[:alpha:]] : Equivalent to [A-Za-z]
[[:blank:]] : Equivalent to [ ] -> Matches spaces and tabs (but not newlines)
[[:digit:]] : Equivalent to [0-9]
[[:word:]] : Equivalent to \w or [a-zA-Z0-9_]

SUBSTITUTION :
$1 : capture group -> Inserts the results of the specified capture group.
$$ : escaped $ -> Inserts a $ sign
$& : match -> Inserts the matched text

FLAGS :
U : ungreedy : will be as_few_as_possible by default and '?' following a quantifier will make it greedy
s : single line -> the dot (.) ca also match new lines
--------------------------------------------------------------------------------------------------------------

General information :
- This product is compatible with both ShiVa 1.9.2 and 2.0.

Requirements:
- ShiVa 1.9.2 or greater´╗┐´╗┐´╗┐
- LUA project (not compatible with full c++ projects, compatible with LUA projects that use c++ plugins)

You can find an introduction to the packs and how to load them in your game here:
http://www.julien-pierron.com/shiva-store

API & Instructions
http://www.julien-pierron.com/product-api?product=jpregex

Sample projects that use my packs
http://www.julien-pierron.com/samples

Write a review

Your Name:


Your Review: Note: HTML is not translated!

Rating: Bad           Good

Enter the code in the box below:



ShiVa Store © 2018 - Powered By OpenCart