NSISpcre plug-in: Difference between revisions
(→Links) |
(Detailed the later compile of the plugin) |
||
(2 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
{{PageAuthor|Robstocks}} | {{PageAuthor|Robstocks}} | ||
== Links == | == Links == | ||
Download v1.0:<br> | Download v1.0:<br> | ||
<attach> | <attach>NSISpcre.zip</attach> | ||
There is also a version that has been compiled against a newer version of PCRE and supports unicode and x64 builds by Francimar Alves [https://github.com/mazinsw/NSISpcre here]. The downside of these builds is that they haven't been optimized for size - so they are much larger than the original version. You can use UPX to get them down to a reasonable size. This version seems to fix a bug in the original with handling large strings (>500 chars), which would cause the NSIS process to lock up. | |||
== Description == | == Description == | ||
A plugin providing Perl compatible regular expression functions. | |||
A simple wrapper around the excellent PCRE library which was written by | A simple wrapper around the excellent PCRE library which was written by | ||
Line 16: | Line 17: | ||
For those that require documentation on how to construct regular expressions, | For those that require documentation on how to construct regular expressions, | ||
please see [http://www.pcre.org/ www.pcre.org] | please see [http://www.pcre.org/ www.pcre.org] | ||
See the NSISpcre.nsh file for full documentation on the available functions. | |||
See the NSISpcreTest.nsi file for some examples. | |||
Latest revision as of 08:28, 16 August 2017
Author: Robstocks (talk, contrib) |
Links
Download v1.0:
NSISpcre.zip (99 KB)
There is also a version that has been compiled against a newer version of PCRE and supports unicode and x64 builds by Francimar Alves here. The downside of these builds is that they haven't been optimized for size - so they are much larger than the original version. You can use UPX to get them down to a reasonable size. This version seems to fix a bug in the original with handling large strings (>500 chars), which would cause the NSIS process to lock up.
Description
A plugin providing Perl compatible regular expression functions.
A simple wrapper around the excellent PCRE library which was written by Philip Hazel, University of Cambridge.
For those that require documentation on how to construct regular expressions, please see www.pcre.org
See the NSISpcre.nsh file for full documentation on the available functions. See the NSISpcreTest.nsi file for some examples.
Features:
- Test whether a subject string matches a pattern
- Capture substrings
- Perform complex replacements
- Control matching options
- Integration with LogicLib
- Unicode UTF-8 support (untested)