1. What is Best RegEx for Euphoria, are there options?
- Posted by vmars Jun 03, 2009
- 1085 views
I have been tinkering with RegEx lately, mostly from standalone RegEx software. Until a few days ago, I never needed RegEx.
Is there a Euphoira include for regex?
Thanks! ...Vern
2. Re: What is Best RegEx for Euphoria, are there options?
- Posted by mattlewis (admin) Jun 03, 2009
- 1047 views
wxEuphoria has a regex class. If all you need is a regex, then it's probably overkill. Euphoria 4.0 will support regexes out of the box, using PCRE in the back end.
Matt
3. Re: What is Best RegEx for Euphoria, are there options?
- Posted by jeremy (admin) Jun 03, 2009
- 1060 views
- Last edited Jun 04, 2009
Euphoria 4.0 will support regexes out of the box, using PCRE in the back end.
It's important to note that regexes will be built into the language, no .dll/.so files are needed to make it work. Further, Euphoria 4.0 does support regexes, which is what Matt means, I am sure. "will" support seems like something yet to be added, but it has been in 4.0 for some time now. They are used in production apps also, such as the doc generation and even this forum.
Jeremy
4. Re: What is Best RegEx for Euphoria, are there options?
- Posted by vmars Jun 03, 2009
- 1103 views
- Last edited Jun 04, 2009
using PCRE in the back end.
I don't know what "in the back end" means.
Is PCRE similar to Perl ?
Also, X is a wrapper for c-something?
I kind of know what a wrapper is. But not really. What does a wrapper look like? An example like, here is the-thing-to-be-wrapped , here is the-wrapper , here is the-wrapping-process, here is the-end-product. Here is how-the-program uses the-end-product.
Thanks! ...Vern
5. Re: What is Best RegEx for Euphoria, are there options?
- Posted by mattlewis (admin) Jun 04, 2009
- 1102 views
using PCRE in the back end.
I don't know what "in the back end" means.
I'm just referring to the built-in features of euphoria.
Is PCRE similar to Perl ?
Somewhat. Perl Compatible Regular Expressions. It's somewhat of a standard library that's used by many applications and languages to implement regular expressions.
Also, X is a wrapper for c-something?
I kind of know what a wrapper is. But not really. What does a wrapper look like? An example like, here is the-thing-to-be-wrapped , here is the-wrapper , here is the-wrapping-process, here is the-end-product. Here is how-the-program uses the-end-product.
There are many libraries that are written in other languages, especially C and C (or other compiled languages that can be used in a similar way). Many of these can be built into dynamic, or shared libraries. On Windows, these are known as DLLs. Euphoria provides some basic tools for using these libraries.
A wrapper uses those tools (things like open_dll, define_c_func, c_func, etc) to give euphoria code easy access to some dynamic library. At a minimum, the wrapper will import the functions of interest, and usually provide simple routines that allow you to call the imported functions.
Wrappers also often handle a lot of the low level details of communicating with the dynamic library. This usually involves allocating memory and setting up structures within that memory that are used to communicate with the library.
The most popular wrapper is probably Win32Lib, which is an example of a wrapper that does much more than simply import the relevant functions. It wraps the Win32 API. Also in the user contributions is a wrapper for PCRE, along with a compiled dll of PCRE.
Matt