Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ MUSHclient
➜ General
➜ Regular Expression Help
It is now over 60 days since the last post. This thread is closed.
Refresh page
| Posted by
| JSteele1234
USA (27 posts) Bio
|
| Date
| Sun 03 Jun 2001 07:20 AM (UTC) |
| Message
| | I noticed there's a thing to match specific words "^(Blah|Qaz|etc..)", but is there something like that that will make it NOT match to given words? |
~ JSteele1234 ~ | | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #1 on Sun 03 Jun 2001 08:59 AM (UTC) |
| Message
| Yes, there is. I quote from the file: RegularExpressions.txt that ships with MUSHclient:
Lookbehind assertions start with (?<= for positive asser-
tions and (?<! for negative assertions. For example,
(?<!foo)bar
does find an occurrence of "bar" that is not preceded by
"foo". The contents of a lookbehind assertion are restricted
such that all the strings it matches must have a fixed
length. However, if there are several alternatives, they do
not all have to have the same fixed length. Thus
(?<=bullock|donkey)
is permitted, but
(?<!dogs?|cats?)
causes an error at compile time. Branches that match dif-
ferent length strings are permitted only at the top level of
a lookbehind assertion.
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
12,392 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top