[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RegExp question
From: |
Ryan Bowman |
Subject: |
RegExp question |
Date: |
Thu, 23 Sep 2004 09:41:58 -0700 (PDT) |
I have a regexp "repeat\\(-[xy]?\\)?" this should
match
repeat
repeat-x
repeat-y
, which it does, however it also matches
background-repeat:
which I don't want it to.
So I changed it to this "repeat\\(-[xy]?\\)?[^:]"
so it won't match background-repeat: but then it no
longer matches repeat,
I assume because [^:] actually means to match
something, but not a ':'
so how do I specifiy that I don't care if anything
follows the patter or not,
so long as it is NOT ':'?
=====
---
Ryan
The door at the end of the tunnel is far too small...
- Closing In 2.0 - Don't Be Afraid - Information Society - insoc.org
---
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
- RegExp question,
Ryan Bowman <=