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.


hairy1

3352 posts

Uber Geek
+1 received by user: 644

ID Verified
Trusted
Lifetime subscriber

#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
freitasm
BDFL - Memuneh
80648 posts

Uber Geek
+1 received by user: 41031

Administrator
ID Verified
Trusted
Geekzone
Lifetime subscriber

  #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.





Referral links: Quic Broadband (free setup code: R587125ERQ6VE) | Samsung | AliExpress | Wise | Sharesies 

 

Support Geekzone by subscribing (browse ads-free), or making a one-off or recurring donation through PressPatron.

 




danfaulknor
974 posts

Ultimate Geek
+1 received by user: 533

Trusted
Prodigi
Subscriber

  #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"







they/them

 

Prodigi - Optimised IT Solutions
WebOps/DevOps, Managed IT, Hosting and Internet/WAN.


freitasm
BDFL - Memuneh
80648 posts

Uber Geek
+1 received by user: 41031

Administrator
ID Verified
Trusted
Geekzone
Lifetime subscriber

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

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






Referral links: Quic Broadband (free setup code: R587125ERQ6VE) | Samsung | AliExpress | Wise | Sharesies 

 

Support Geekzone by subscribing (browse ads-free), or making a one-off or recurring donation through PressPatron.

 




freitasm
BDFL - Memuneh
80648 posts

Uber Geek
+1 received by user: 41031

Administrator
ID Verified
Trusted
Geekzone
Lifetime subscriber

  #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...





Referral links: Quic Broadband (free setup code: R587125ERQ6VE) | Samsung | AliExpress | Wise | Sharesies 

 

Support Geekzone by subscribing (browse ads-free), or making a one-off or recurring donation through PressPatron.

 


freitasm
BDFL - Memuneh
80648 posts

Uber Geek
+1 received by user: 41031

Administrator
ID Verified
Trusted
Geekzone
Lifetime subscriber

  #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?






Referral links: Quic Broadband (free setup code: R587125ERQ6VE) | Samsung | AliExpress | Wise | Sharesies 

 

Support Geekzone by subscribing (browse ads-free), or making a one-off or recurring donation through PressPatron.

 


freitasm
BDFL - Memuneh
80648 posts

Uber Geek
+1 received by user: 41031

Administrator
ID Verified
Trusted
Geekzone
Lifetime subscriber

  #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?





Referral links: Quic Broadband (free setup code: R587125ERQ6VE) | Samsung | AliExpress | Wise | Sharesies 

 

Support Geekzone by subscribing (browse ads-free), or making a one-off or recurring donation through PressPatron.

 


 
 
 

Want to support Geekzone and browse the site without the ads? Subscribe to Geekzone now (monthly, annual and lifetime options).
freitasm
BDFL - Memuneh
80648 posts

Uber Geek
+1 received by user: 41031

Administrator
ID Verified
Trusted
Geekzone
Lifetime subscriber

  #1413136 24-Oct-2015 11:53
Send private message

Testing with @sbiddle, @tonyhughes, @scottjpalmer... Did you get this message?





Referral links: Quic Broadband (free setup code: R587125ERQ6VE) | Samsung | AliExpress | Wise | Sharesies 

 

Support Geekzone by subscribing (browse ads-free), or making a one-off or recurring donation through PressPatron.

 


tonyhughes
Hawkes Bay
8476 posts

Uber Geek
+1 received by user: 6

Retired Mod
Trusted
Lifetime subscriber

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

Yip







hairy1

3352 posts

Uber Geek
+1 received by user: 644

ID Verified
Trusted
Lifetime subscriber

  #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.


freitasm
BDFL - Memuneh
80648 posts

Uber Geek
+1 received by user: 41031

Administrator
ID Verified
Trusted
Geekzone
Lifetime subscriber

  #1413161 24-Oct-2015 13:28
Send private message

They are indeed. As @ajobbins, @cisconz, @chris021, @nate...






Referral links: Quic Broadband (free setup code: R587125ERQ6VE) | Samsung | AliExpress | Wise | Sharesies 

 

Support Geekzone by subscribing (browse ads-free), or making a one-off or recurring donation through PressPatron.

 


chris021
230 posts

Master Geek
+1 received by user: 25

Trusted

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

Msg recieved.

 
 
 

Stream your favourite shows now on Apple TV (affiliate link).
nate
6473 posts

Uber Geek
+1 received by user: 458

Retired Mod
Trusted
Lifetime subscriber

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

Me too

Brumfondl
1198 posts

Uber Geek
+1 received by user: 524

Trusted
Subscriber

  #1413183 24-Oct-2015 13:47
Send private message

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





johnr
19282 posts

Uber Geek
+1 received by user: 2526
Inactive user


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

Awesome it works

gzt

gzt
18679 posts

Uber Geek
+1 received by user: 7813

Lifetime subscriber

  #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








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.