Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
Gregory
Beginner


Joined: 14 Nov 2013
Posts: 22
Location: Durban, South Africa

PostPosted: Mon Sep 23, 2019 6:50 am   

Using Regular Expressions With CMUD
 
Hello

I may be overlooking s few things here but I cannot seem to find out how to use Regular Expressions with CMUD. I have recently started playing around with RegexBuddy, and ahve tried copied and pasting the following into a trigger:

Longbeard tells you 'As a reward, I am giving you [0-9]{2} quest points and [0-9]{3,4} gold\.'

This will not match on it's own and I cannot seem to find out how to get this to work. I know you can use patterns with %d to get match's but would like to be able to simply construct them in RegexBuddy and then copy paste them into CMUD.

Is this possible? Thank you for any help!
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4662
Location: Pensacola, FL, USA

PostPosted: Mon Sep 23, 2019 3:12 pm   
 
This is a simple fix.
Click on the Triggers button along the top header of CMUD.
Locate the trigger in question and click on it.
At the bottom of the right-hand side of the window, click the 'More +' button to expand the Trigger options panel.
Ensure the Regular Expression checkbox is checked.
_________________
Discord: Shalimarwildcat
Reply with quote
Gregory
Beginner


Joined: 14 Nov 2013
Posts: 22
Location: Durban, South Africa

PostPosted: Mon Sep 23, 2019 5:22 pm   
 
Oh wow, so simple!

I cant believe how I never saw that Smile

It works perfectly, thanks so much!
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net