[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

ANSICode Regexp?

Trans

8/23/2008 6:08:00 PM

Can anyone give me a Regexp to match ANSIcodes.

I've tried:

/\\e\[[0-9]*\w/

And lots of variations there-of.

The problem seems to be that first '\' is never in the regexp.

T.

1 Answer

Trans

8/23/2008 6:12:00 PM

0



On Aug 23, 2:08=A0pm, Trans <transf...@gmail.com> wrote:
> Can anyone give me a Regexp to match ANSIcodes.
>
> I've tried:
>
> =A0 /\\e\[[0-9]*\w/
>
> And lots of variations there-of.
>
> The problem seems to be that first '\' is never in the regexp.

Gad. A soon as I post, I figure out my mistake. I'nt that just the way
of it.

ANSWER:

/\e\[[0-9]*\w/

T.