(New message)
Subject review (reverse sequence)
Posted by
Nick Gammon
Australia (18,770 posts) bio
Forum Administrator
Date
Wed 18 Aug 2004 09:50 PM (UTC) [ quote
]
Message
Like Flannel says, a question mark after a group makes the entire group optional.
eg.
(foo|bar|wet|weather)?
Matches any of those four words, or none of them.
- Nick Gammon
www.gammon.com.au, www.mushclient.com top
Posted by
Flannel
USA (1,230 posts) bio
Date
Tue 17 Aug 2004 07:27 PM (UTC) [ quote
]
Message
If you want the noun to return minus the article, then the first should work.
If youre only worried about the line catching, the second would work just as well.
~Flannel
Messiah of Rose
Eternity's Trials.
Clones are people two. top
Posted by
Metsuro
USA (389 posts) bio
Date
Tue 17 Aug 2004 11:46 AM (UTC) [ quote
]
Message
well i am trying to get it so if those three things there it will match, if not it will still match
Everything turns around in the end top
Posted by
Flannel
USA (1,230 posts) bio
Date
Tue 17 Aug 2004 11:08 AM (UTC) [ quote
]
Message
Do you need it to return the name? (Horse in The Horse is dead)
If so, try this:
^(An |A |The )?(.*?) is DEAD\!\!$
If not, and you just do this:
^(.*?) is DEAD\!\!$
~Flannel
Messiah of Rose
Eternity's Trials.
Clones are people two. top
Posted by
Metsuro
USA (389 posts) bio
Date
Tue 17 Aug 2004 10:30 AM (UTC) [ quote
]
Message
^(An|A|The) (.*?) is DEAD\!\!$
i want it to also just catch on blah is dead!! dont know how i would do that really
Everything turns around in the end 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.
1,369 views.
Reply to this subject
Start a new subject
  Refresh page
Go to topic:
(Choose topic)
Area Editor: Bug reports
Area Editor: General
Area Editor: News and updates
Area Editor: Suggestions
Area Editor: Tips and tricks
Dawn of Time: Administration
Dawn of Time: Configuration
Dawn of Time: Installing/compiling the server
Dawn of Time: New Dawn Muds Announcements
Dawn of Time: Playing
Dawn of Time: What is Dawn of Time (Dawn)?
Electronics: Microprocessors
Electronics: Operational Amplifiers
Forum: About
Forum: Announcements
Forum: Mailing other users
Forum: Problems
Forum: Registering
Forum: Searching
Forum: Subscribing
Forum: Suggestions
Forum: Test
Forum: Time zones / time display
Forum software: Administration
Forum software: Installation
MUDs: Announcements
MUDs: General
MUDs: MUD Design Concepts
MUSHclient: Announcements
MUSHclient: Beta testing
MUSHclient: Bug reports
MUSHclient: Development
MUSHclient: General
MUSHclient: Getting Started
MUSHclient: International
MUSHclient: Jscript
MUSHclient: Lua
MUSHclient: Miniwindows
MUSHclient: MXP and Pueblo
MUSHclient: Perlscript
MUSHclient: Plugins
MUSHclient: Python
MUSHclient: Suggestions
MUSHclient: Tips and tricks
MUSHclient: VBscript
MUSHclient: Wine
PennMUSH: Compiling the server
PennMUSH: Running the server
Programming: General
Programming: STL
Quilting: General
ROM: Compiling the server
ROM: Running the server
SMAUG: Commands
SMAUG: Compiling the server
SMAUG: Lua
SMAUG: Running the server
SMAUG: SMAUG coding
Search the forum
top
Comments to:
Gammon Software support
Forum RSS feed ( http://www.gammon.com.au/rss/forum.xml )