Replace the "." with "\.".
It's a special character which means any character. The backslash forces it to be taken literally.
Search found 24 matches
- Sun Nov 17, 2013 6:38 pm
- Forum: Help Forum
- Topic: Regex help needed...
- Replies: 5
- Views: 3781
- Sun Nov 17, 2013 9:47 am
- Forum: Help Forum
- Topic: Regex help needed...
- Replies: 5
- Views: 3781
Re: Regex help needed...
2 invaluable links for regex
http://regexlib.com/CheatSheet.aspx
http://www.myregextester.com/index.php
http://regexlib.com/CheatSheet.aspx
http://www.myregextester.com/index.php
- Fri Oct 18, 2013 3:44 pm
- Forum: Help Forum
- Topic: simple highligher
- Replies: 9
- Views: 5089
Re: simple highligher
That's why I posted the link
- Fri Oct 18, 2013 3:12 pm
- Forum: Help Forum
- Topic: simple highligher
- Replies: 9
- Views: 5089
Re: simple highligher
Short answer, database: http://wiki.mudlet.org/w/Manual:Database_Functions
- Mon Oct 14, 2013 9:21 pm
- Forum: Help Forum
- Topic: regex tomatch prompt when HP<100?
- Replies: 2
- Views: 2472
Re: regex tomatch prompt when HP<100?
Personally I'd regex to get the current hp then use lua to test if it's lower than 100.
- Tue Oct 08, 2013 1:21 pm
- Forum: General Forum
- Topic: Mudlet features and API requests
- Replies: 535
- Views: 653161
Re: Mudlet features and API requests
One, largely inconsequential, niggle for our likely usage that the link brought up - it seems to me to use "USA billion" (1,000,000,000) rather than what I'd recognise as a proper "UK billion" (1,000,000,000,000) etc. ;) :geek: - Pedants of the Earth gain membership into a homol...
- Tue Oct 08, 2013 8:34 am
- Forum: Help Forum
- Topic: Odd pattern to regex match
- Replies: 5
- Views: 3961
Re: Odd pattern to regex match
^You need (\d+) experience to .*level (\w+) to ([0-9:]+) and have (\d+) experience. \((\d+)\%\)$ Will give you matches[2] = experience needed matches[3] = profession matches[4] = level (either a number, or a number:number) matches[5] = current exp matches[6] = % level you could then test whether ma...
- Tue Oct 08, 2013 7:50 am
- Forum: Help Forum
- Topic: Odd pattern to regex match
- Replies: 5
- Views: 3961
Re: Odd pattern to regex match
try ([0-9\:]+)
I think... should be the set of digits and the colon as one match, will for with or without the colon.
I think... should be the set of digits and the colon as one match, will for with or without the colon.
- Thu Oct 03, 2013 1:59 pm
- Forum: Help Forum
- Topic: Triggering on Output of Trigger Action
- Replies: 8
- Views: 4875
Re: Triggering on Output of Trigger Action
As I understand it you have a mutiline OR trigger for: "The sun starts to rise", "The sun is over your head", "The moon is rising" etc This trigger stores the result of getStopWatchTime() into an array and sends "TIME" to as a command to the mud. The second tr...
- Thu Sep 26, 2013 11:38 am
- Forum: Help Forum
- Topic: Special exits as normal exits
- Replies: 2
- Views: 3698
Special exits as normal exits
Okay, next roadblock in my quest... I haven't had chance to test this code yet so I'm more asking if I'm doing this the hard way or if there's a better way to achieve the same aim. The plan is to have special exits (e.g. "leap through window") to be activated by a standard numpad direction...