Straight Left Quotation Mark

Thank you ActionScript! All these years of using a keyboard and today I’ve found the answer to a question you never asked. Please, do tell…

Q: What is that thing sharing a key with the tilde?

A: A “straight left quotation mark”.

And your follow up question, naturally…

Q: What the hell is it used for?

A: Funny you should ask. I finally have an answer. Thanks to ActionScript and regular expressions, combine it with a $ and it’ll fetch the portion of a string before the match when searching via regex.

Wow! You learn something new everyday.

$` The portion of the string that precedes the matched substring. This code uses the straight left single quotation mark character (`), not the straight single quotation mark (‘) or the left curly single quotation mark (‘ ).

http://help.adobe.com/en_US/as3/dev/WS5b3ccc516d4fbf351e63e3d118a9b90204-7f00.html

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s