Recommend this page to a friend! |
Download .zip |
Info | Example | View files (51) | Download .zip | Reputation | Support forum (1) | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2015-08-13 (1 year ago) | Not enough user ratings | Total: 146 This week: 1 | All time: 8,195 This week: 1,047 |
Version | License | PHP version | Categories | |||
sl5-preg-finder 1 | GNU General Publi... | 5.0 | PHP 5, Text processing |
Description | Author | |||||||||||||
This class can find and replace content using regular expression. |
|
a PHP Template Engine class using Perl Compatible Regular Expressions (PCRE)
See complete examples inside example folder or inside the tests folder. :)
Example source conversion :
<pre> a{b{B}}
==>
a[b[B]] </pre> ______________________
Example source conversion : <pre> if(X1){$X1;if(X2){$X2;}}
==>
if(X1)[ ..$X1;if(X2)[ ....$X2; ..] ] </pre> HowTo config conversion for this last example:
$old_open = '{'; $old_close = '}'; $new_open_default = '['; $new_close_default = ']'; $charSpace = "."; $newline = "\r\n"; $indentSize = 2;
now simply start conversion. BTW optional you could use regular expressions and much more. or you could use your own callback function. enjoy :)
try regular expressions online. for example here: https://regex101.com/
______________________
Example source conversion : <pre> a{b{B}}
==>
a 1|[ 1:..b 2|..[ 2:....B 2:..] 1:] </pre> ______________________
Files |
File | Role | Description | ||
---|---|---|---|---|
.idea (1 file) | ||||
examples (1 directory) | ||||
tests (1 file, 2 directories) | ||||
GNU_GENERAL_PUBLIC..._3_29_June_2007.txt | Lic. | License | ||
LICENSE.txt | Lic. | License | ||
README.md | Doc. | Auxiliary data | ||
SL5_preg_contentFinder.php | Class | Class source |
Files | / | examples | / | AutoHotKey |
File | Role | Description | ||
---|---|---|---|---|
js (2 directories) | ||||
create_input_file.php | Aux. | Example script | ||
input_compressed_1.ahk | Data | Auxiliary data | ||
input_compressed_2.ahk | Data | Auxiliary data | ||
oneLineDummy.ahk | Data | Auxiliary data | ||
output_reformatted_2.ahk | Data | Auxiliary data | ||
Reformatting_Autohotkey_Source.php | Example | Unit test script | ||
SUtility.ahk | Data | Auxiliary data |
Files | / | examples | / | AutoHotKey | / | js |
File | Role | Description | ||
---|---|---|---|---|
Garlic (8 files, 4 directories) | ||||
highlighter-ahk-zenburn-master (3 files, 3 directories) |
Files | / | examples | / | AutoHotKey | / | js | / | Garlic |
File | Role | Description | ||
---|---|---|---|---|
bin (3 files) | ||||
dist (2 files) | ||||
resources (3 files) | ||||
tests (5 files) | ||||
.travis.yml | Data | Auxiliary data | ||
CHANGELOG.md | Data | Auxiliary data | ||
CNAME | Data | Auxiliary data | ||
component.json | Data | Auxiliary data | ||
garlic.js | Data | Auxiliary data | ||
index.html | Doc. | Documentation | ||
LICENCE.md | Data | Auxiliary data | ||
README.md | Data | Auxiliary data |
Files | / | examples | / | AutoHotKey | / | js | / | Garlic | / | bin |
File | Role | Description |
---|---|---|
build.sh | Data | Auxiliary data |
minify | Data | Auxiliary data |
test-suite.sh | Data | Auxiliary data |
Files | / | examples | / | AutoHotKey | / | js | / | Garlic | / | dist |
File | Role | Description |
---|---|---|
garlic-standalone.min.js | Data | Auxiliary data |
garlic.min.js | Data | Auxiliary data |
Files | / | examples | / | AutoHotKey | / | js | / | Garlic | / | resources |
File | Role | Description |
---|---|---|
favicon.ico | Data | Auxiliary data |
garlicjs.png | Icon | Icon image |
jquery-1.8.2.min.js | Data | Auxiliary data |
Files | / | examples | / | AutoHotKey | / | js | / | Garlic | / | tests |
File | Role | Description |
---|---|---|
expect.js | Data | Auxiliary data |
index.html | Data | Documentation |
mocha.css | Data | Auxiliary data |
mocha.js | Data | Auxiliary data |
tests.js | Data | Auxiliary data |
Files | / | examples | / | AutoHotKey | / | js | / | highlighter-ahk-zenburn-master |
Files | / | examples | / | AutoHotKey | / | js | / | highlighter-ahk-zenburn-master | / | scripts |
File | Role | Description |
---|---|---|
shBrushAhk.js | Data | Auxiliary data |
shCore.js | Data | Auxiliary data |
Files | / | examples | / | AutoHotKey | / | js | / | highlighter-ahk-zenburn-master | / | storage |
File | Role | Description |
---|---|---|
bigTest.html | Data | Documentation |
preview.png | Data | Auxiliary data |
preview_github.png | Icon | Icon image |
Files | / | examples | / | AutoHotKey | / | js | / | highlighter-ahk-zenburn-master | / | styles |
File | Role | Description |
---|---|---|
shCore.css | Data | Auxiliary data |
shThemeGitHub.css | Data | Auxiliary data |
shThemeZenburn-A.css | Data | Auxiliary data |
Files | / | tests |
File | Role | Description | ||
---|---|---|---|---|
PHPUnit (5 files) | ||||
test2 (1 file) | ||||
create_1file_withAll_PHPUnit_tests.php | Test | Unit test script |
Files | / | tests | / | PHPUnit |
File | Role | Description |
---|---|---|
Callback_Test.php | Test | Unit test script |
DontTouchThis_searchMode_Test.php | Test | Unit test script |
examples_extracted_from_UnitTest.txt | Doc. | Documentation |
getContent_Test.php | Test | Unit test script |
use_BackReference_searchMode_Test.php | Test | Unit test script |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.