REGULAR EXPRESSIONS

Created by Lakshmi Bhavani, Modified on Wed, 3 Jul at 1:48 PM by Lakshmi Bhavani

regular expression is a pattern that matches strings or pieces of strings.

please refer below link for regular (expression regex)
https://cs.lmu.edu/~ray/notes/regex/



STEP 1:

If you have marked YouTube as unproductive but want specific URLs to be tracked as productive, follow these steps  


eg::https://www.youtube.com/watch?v=BgLTDT03QtU&ab_channel=NeetCode

->you have marked youtube as unproductive but you want to track above url as productive, so now we need to update regular expression for this url

REGEX:  .*Neetcode$

. ---> THAT MATCHES ANY SINGLE CHARACTER EXCEPT NEWLINE CHARACTER
*NEETCODE -->URL CONTAINS NEETCODE
$ --> IT INIDCATES THAT URL ENDS WITH


STEP 2:


-->Now login to site and navigate to productivity tab, select configure apps
-->click on add new rule and add the regular expression as shown below screenshot







Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article