Legal Holiday -
: While called a "day off," certain industries (like emergency services, healthcare, and retail) may still require staff to work, though they are usually compensated with additional pay or a substitute day off.
: If a legal holiday falls on a Saturday or Sunday, it is often officially observed on the following Monday, which becomes the "legal holiday" for payroll and banking purposes. Benefits of Observing Legal Holidays legal holiday
: Employers are typically required to provide workers with a paid day off or premium pay (often "time and a half") if they are required to work. : While called a "day off," certain industries
A (often called a "statutory" or "stat" holiday) is a day established by law on which government offices are closed and many employees are entitled to a day off with pay. While these days are often associated with celebration or remembrance, their primary legal function is to regulate labor and commerce, such as the computation of deadlines for banking and legal documents. Key Functions of Legal Holidays A (often called a "statutory" or "stat" holiday)
: Not every "holiday" is a legal holiday. For instance, in Canada, only Victoria Day and Canada Day are nationwide legal holidays; others are determined by individual provinces or specific employment contracts.
: For documents like Bills of Exchange , legal holidays are considered "non-juridical days." If a deadline falls on one of these days, it is usually extended to the next business day.
: Governments use these days to foster national unity or recognize historical milestones, such as Canada Day or Presidents' Day . Common Misconceptions
That’s a brilliant tip and the example video.. Never considered doing this for some reason — makes so much sense though.
So often content is provided with pseudo HTML often created by MS Word.. nice to have a way to remove the same spammy tags it always generates.
Good tip on the multiple search and replace, but in a case like this, it’s kinda overkill… instead of replacing
<p>and</p>you could also just replace</?p>.You could even expand that to get all
ptags, even with attributes, using</?p[^>]*>.Simples :-)
Cool! Regex to the rescue.
My main use-case has about 15 find-replaces for all kinds of various stuff, so it might be a little outside the scope of a single regex.
Yeah, I could totally see a command like
remove cruftdoing a bunch of these little replaces. RegEx could absolutely do it, but it would get a bit unwieldy.</?(p|blockquote|span)[^>]*>What sublime theme are you using Chris? Its so clean and simple!
I’m curious about that too!
Looks like he’s using the same one I am: Material Theme
https://github.com/equinusocio/material-theme
Thanks Joe!
Question, in your code, I understand the need for ‘find’, ‘replace’ and ‘case’. What does greedy do? Is that a designation to do all?
What is the theme used in the first image (package install) and last image (run new command)?
There is a small error in your JSON code example.
A closing bracket at the end of the code is missing.
There is a cool plugin for Sublime Text https://github.com/titoBouzout/Tag that can strip tags or attributes from file. Saved me a lot of time on multiple occasions. Can’t recommend it enough. Especially if you don’t want to mess with regular expressions.