regular expression compilation aborted
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Unix support > Unix Programming > regular expression compilation aborted




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    regular expression compilation aborted  
torpedo@bluebottle.com


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
05-10-05 12:49 PM

Hi folks,

I have the problem regarding the compilation of the regular expression.

I have given the regular expression as follows:

" (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct
|Nov|Dec) ([ 0-9][0-9])
([0-9][0-9])(.*)"

and regcomp() function call gets aborted ( i think it is because of the
increased memory consumption at the time of regular expression
compilation ).
What is the reason behind this ?

Please put some light on the problem,

Thanks in advance,
torpedo






[ Post a follow-up to this message ]



    Re: regular expression compilation aborted  
Pascal Bourguignon


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
05-10-05 12:49 PM

torpedo@bluebottle.com writes:

> Hi folks,
>
> I have the problem regarding the compilation of the regular expression.
>
> I have given the regular expression as follows:
>
> " (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct
|Nov|Dec) ([ 0-9][0-9])
> ([0-9][0-9])(.*)"
>
> and regcomp() function call gets aborted ( i think it is because of the
> increased memory consumption at the time of regular expression
> compilation ).
> What is the reason behind this ?

I don't observe undue memory consumption.  This regexp is one of the simplie
st.

[1]> (room)

Bytes permanently allocated:       90432
Bytes currently in use:          3061472
Bytes available until next GC:   1500436
3061472 ;
1500436
[2]> (regexp:regexp-compile " (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct
|No
v|Dec) ([ 0-9][0-9]) ([0-9][0-9])(.*)" :extended t)
#<FOREIGN-POINTER #x081F5290>
[3]> (regexp:regexp-exec * "Aug 12 1932")
#S(REGEXP:MATCH :START 0 :END 11) ;
#S(REGEXP:MATCH :START 0 :END 3) ;
#S(REGEXP:MATCH :START 4 :END 6) ;
#S(REGEXP:MATCH :START 7 :END 9) ;
#S(REGEXP:MATCH :START 9 :END 11)
[4]> (room)

Bytes permanently allocated:       90432
Bytes currently in use:          3106560
Bytes available until next GC:   1455348
3106560 ;
1455348
[5]>

--
__Pascal Bourguignon__                     http://www.informatimago.com/
Wanna go outside.
Oh, no! Help! I got outside!
Let me back inside!





[ Post a follow-up to this message ]



    Re: regular expression compilation aborted  
torpedo@bluebottle.com


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
05-12-05 07:59 AM

Ooops ...

Sorry, the problems was lying somewhere else!
I was doing some illigal memory reference.

Thank you very much.

torpedo






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 09:20 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register