Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.clipper.visual-objects > #7660 > unrolled thread

Regex strings

Started by"Philippe Bayard (Belgium)" <philbayard@gmail.com>
First post2015-01-14 05:09 -0800
Last post2015-01-14 08:31 -0600
Articles 2 — 2 participants

Back to article view | Back to comp.lang.clipper.visual-objects


Contents

  Regex strings "Philippe Bayard (Belgium)" <philbayard@gmail.com> - 2015-01-14 05:09 -0800
    Re: Regex strings "Willie Moore" <williem@wmconsulting.com> - 2015-01-14 08:31 -0600

#7660 — Regex strings

From"Philippe Bayard (Belgium)" <philbayard@gmail.com>
Date2015-01-14 05:09 -0800
SubjectRegex strings
Message-ID<740e6786-cf13-49b8-b8b3-375916fa159b@googlegroups.com>
Hi everyone,

i'm looking for some classes or library to use RegEx expressions.
I'm trying to find out the encoding of files and strings.

My issue is that i can work with multiples encodings. The main ones are : 

- ANSI
- UTF-8
- UTF-8 without BOM

It's quite easy to know if i work with a UTF-8 file, testing the BOM.
But it's becoming a bit more difficult to separate UTF-8 from ANSI whithout this.

A classic way is to try specific encoding characters to try to figure out what sort of file we have.

I know that in the others langugages there are plenty of functions like preg_match in php. Did someone already did this?

Thanks in advance,
Phil.

[toc] | [next] | [standalone]


#7661

From"Willie Moore" <williem@wmconsulting.com>
Date2015-01-14 08:31 -0600
Message-ID<m95ukt$6lp$1@speranza.aioe.org>
In reply to#7660
Philippe,

The easiest way to implement a diverse regex from inside VO would be to 
write a class library in Vulcan, C#, or VB and expose the methods via COM. 
dotNet has very good support for regex.

Regards,
Willie
Vulcan VIP

"Philippe Bayard (Belgium)"  wrote in message 
news:740e6786-cf13-49b8-b8b3-375916fa159b@googlegroups.com...

Hi everyone,

i'm looking for some classes or library to use RegEx expressions.
I'm trying to find out the encoding of files and strings.

My issue is that i can work with multiples encodings. The main ones are :

- ANSI
- UTF-8
- UTF-8 without BOM

It's quite easy to know if i work with a UTF-8 file, testing the BOM.
But it's becoming a bit more difficult to separate UTF-8 from ANSI whithout 
this.

A classic way is to try specific encoding characters to try to figure out 
what sort of file we have.

I know that in the others langugages there are plenty of functions like 
preg_match in php. Did someone already did this?

Thanks in advance,
Phil.

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.clipper.visual-objects


csiph-web