Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.




2546 posts

Uber Geek
+1 received by user: 299

Trusted
Subscriber

Topic # 183626 23-Oct-2015 14:56
Send private message

Hi Mauricio,

Would it be be possible to have GZ pick up user "mentions" and notify that user that they have been tagged?

Quite often some-one will mention that (for example) @stevebiddle or @johnr knows the answer to a problem....

Cheers, Matt.




My views (except when I am looking out their windows) are not those of my employer.

View this topic in a long page with up to 500 replies per page Create new topic
 1 | 2 | 3
BDFL - Memuneh
58483 posts

Uber Geek
+1 received by user: 9934

Administrator
Trusted
Geekzone
Subscriber

  Reply # 1412863 23-Oct-2015 15:03
Send private message

If someone gives me a regex to find a single word after the @ I can look at it.





505 posts

Ultimate Geek
+1 received by user: 50

Trusted
Internet by Design

  Reply # 1413028 23-Oct-2015 21:38
Send private message

/\@(\w+\b)/ig

Don't ask me if it works on ASP but it works in Python..

Matches a word of one or more characters between an @ and the end of the first word. The i at the end makes it case insensitive and the g makes it match more than one.

When run on "testing for @danielfaulknor in a thread" it returns "danielfaulknor"

When run on the OP, it returns "stevebiddle" and "johnr"







 
 
 
 


BDFL - Memuneh
58483 posts

Uber Geek
+1 received by user: 9934

Administrator
Trusted
Geekzone
Subscriber

  Reply # 1413054 23-Oct-2015 23:12
Send private message

Thanks. Passed a regex tester. Will work on this.






BDFL - Memuneh
58483 posts

Uber Geek
+1 received by user: 9934

Administrator
Trusted
Geekzone
Subscriber

  Reply # 1413055 23-Oct-2015 23:15
Send private message

danielfaulknor: /\@(\w+\b)/ig


It also catches "freitasm@geekzone.co.nz" (matches geekzone). Ideally it would ignore if there's a period that is followed by another character different than space too...





BDFL - Memuneh
58483 posts

Uber Geek
+1 received by user: 9934

Administrator
Trusted
Geekzone
Subscriber

  Reply # 1413133 24-Oct-2015 11:39
Send private message

Thanks @hairy1 for the suggestion and @danielfaulknor for the code. It worked on ASP VBScript as /\@(\w+\b)

Summoning @johnr, did you get this message?






BDFL - Memuneh
58483 posts

Uber Geek
+1 received by user: 9934

Administrator
Trusted
Geekzone
Subscriber

  Reply # 1413134 24-Oct-2015 11:41
Send private message

Ok, now it should work for @johnr - I have changed something here.

John, are you there?





BDFL - Memuneh
58483 posts

Uber Geek
+1 received by user: 9934

Administrator
Trusted
Geekzone
Subscriber

  Reply # 1413136 24-Oct-2015 11:53
Send private message
Hawkes Bay
8477 posts

Uber Geek
+1 received by user: 4

Mod Emeritus
Trusted
Subscriber

  Reply # 1413138 24-Oct-2015 11:56
Send private message

Yip




Visit http://www.thecloud.net.nz for New Zealand based Hosted Exchange, Virtual Servers, Web Hosting, FTP Backup & more.
(1GB free FTP storage, or larger plans from $5.75)
 
 - Setup your own mailserver at home on Ubuntu Server - full step by step howto here.
 - Have you seen this: Nathan "KFC4LIFE" Dunn.




2546 posts

Uber Geek
+1 received by user: 299

Trusted
Subscriber

  Reply # 1413143 24-Oct-2015 12:09
Send private message

Thanks very much @freitasm for the new feature! I think @sbiddle and @scottpalmer are tied up with a serious function today!




My views (except when I am looking out their windows) are not those of my employer.

BDFL - Memuneh
58483 posts

Uber Geek
+1 received by user: 9934

Administrator
Trusted
Geekzone
Subscriber

205 posts

Master Geek
+1 received by user: 5

Trusted

  Reply # 1413163 24-Oct-2015 13:30
Send private message

Msg recieved.

I'm @nate
6287 posts

Uber Geek
+1 received by user: 373

Moderator
Trusted
Subscriber

  Reply # 1413164 24-Oct-2015 13:31
Send private message
860 posts

Ultimate Geek
+1 received by user: 377

Trusted
Subscriber

  Reply # 1413183 24-Oct-2015 13:47
3 people support this post
Send private message

I think this thread is the epitome of what I love about Geekzone :)





19282 posts

Uber Geek
+1 received by user: 2600
Inactive user


  Reply # 1413185 24-Oct-2015 14:03
Send private message

Awesome it works

gzt

8877 posts

Uber Geek
+1 received by user: 1185


  Reply # 1413186 24-Oct-2015 14:20
Send private message

@gzt test message.

 1 | 2 | 3
View this topic in a long page with up to 500 replies per page Create new topic



Twitter »

Follow us to receive Twitter updates when new discussions are posted in our forums:



Follow us to receive Twitter updates when news items and blogs are posted in our frontpage:



Follow us to receive Twitter updates when tech item prices are listed in our price comparison site:





News »

Thurrott says Microsoft Surface is dead last for reliability
Posted 16-Aug-2017 15:19


LibreOffice 5.4 works better with Microsoft Office files
Posted 16-Aug-2017 13:32


Certus launches Cognition
Posted 14-Aug-2017 09:31


Spark adds Cambridge, Turangi to 4.5G network
Posted 10-Aug-2017 17:55


REANNZ network to receive ongoing Government funding through to 2024
Posted 10-Aug-2017 16:05


Chorus backhaul starts with 2degrees
Posted 10-Aug-2017 15:49


New Zealanders cool on data analytics catching benefit fraud
Posted 10-Aug-2017 09:56


New Zealanders wary of wearable biometrics: Unisys
Posted 9-Aug-2017 09:39


Unisys Security Index 2017: How New Zealand compares
Posted 8-Aug-2017 15:05


Chorus to provide national backhaul to 2degrees
Posted 8-Aug-2017 11:26


D-Link releases next generation managed gigabit switches
Posted 8-Aug-2017 11:24


How Microsoft killed Windows Phone
Posted 7-Aug-2017 18:39


Protecting the 12.9-inch iPad Pro: Covers, sleeves
Posted 7-Aug-2017 12:14


Why New Zealand outplayed Australia on the NBN
Posted 6-Aug-2017 18:09


Talking VPNs on Radio NZ Nine-to-Noon
Posted 4-Aug-2017 13:56



Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.

Alternatively, you can receive a daily email with Geekzone updates.