Maybe you were looking for...

Regex: Extract digits separated by a hyphen

What I have: 123456789-987654321 What I need: 3456789-4321 (keep last 7 digits from 1st group and keep last 4 digits from 2nd group) (\d{7})- gets me

Search a file and open its folder vim

I am using silver searcher in vim. A lot of times I want to search a file BUT open its folder (to see the other files that are there). How can I do it?

Mongo compass connects and shows 0 dbs, but my node js project can connect and queries return everything

So, I've been using compass and nodejs to connect to my db for some time. I've noticed a new GUI for compass few days ago. My problem is I can connect through b

Saving content as JSON to a database in real time

I have a text editor built on Tiptap that sends its content as JSON to a API which saves it to a mongoDB database. I have a timeout on it so it only sends a req

remove spell check on input WITH JAVASCRIPT

i have a JavaScript program that make input and a want to remove spell check. let inp = document.createElement('input'); inp.placeholder = "enter line of code";

Facebook Connect with multiple FB accounts

I am developing a business site with Facebook Connect enabled and its working fine for me. Now, I came across a situation where I have a user with 2 or more FB

redis-py not closing threads on exit

I am using redis-py 2.10.6 and redis 4.0.11. My application uses redis for both the db and the pubsub. When I shut down I often get either hanging or a crash.