Well, it looks like they are playing with HTML using regexp . . . generally, folks frown on that but given you are using, not developing we'll ignore that issue for now.
Looks like the first line would take:
<a href="https://www.w3schools.com">Visit W3Schools.com!</a>
and suppress it to nothing.
The second one takes the shown string and changes it to a space.
As the person above stated, you need both the regexp and input to actually do anything with that. Once you have both the regexp and some input, I recommend playing with the input with a regexp checker . . . like here (or equal): https://pythex.org/