Go Back   SitePoint Forums > Forum Index > Program Your Site > Classic ASP
Newsletter FAQ Members List Calendar Mark Forums Read

New to SitePoint Forums? Register here for free!

SitePoint Sponsor
 
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old Dec 5, 2005, 10:43   #1
RaS!
SitePoint Enthusiast
 
RaS!'s Avatar
 
Join Date: Mar 2004
Location: Italy
Posts: 29
Spaces in RegExp pattern

Hy guys,
I'm working on a metar and I've this tring:
"MON CLD CIME VAL INVIS"

I've set my regexp pattern as this:

Code:
xeFM.Pattern = "^(MON|VAL)?(LIB|CLD SCT|VERS INC|CNS POST|CLD CIME|CIME INC|GEN INC|INC|INVIS)?(NIL|FOSCHIA SKC SUP|NEBBIA SCT|NEBBIA|CLD SCT|CLD SCT NEBBIA INF|MAR CLD|INVIS)?$"
It works fine, but it cannot recognize expressions wich contains a space such 'CLD CIME'. How can I
fix my pattern? thanks!
RaS! is offline   Reply With Quote
 

Bookmarks

« Previous Thread | Next Thread »

Thread Tools
Display Modes

 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Sponsored Links
 
Forum Jump


All times are GMT -7. The time now is 03:45.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Copyright 1998-2009, SitePoint Pty Ltd. All Rights Reserved