Question: How would you search through an entire string and display each item found in a div?

The thing I'm searching for is a license code which starts with NVOS and ends with ". I'd like to extract the entire code except for the "

The thing I want to parse would be like NVOS-ABCD-EFG-HIJK-LM52P" but I don't want the " included.

Here is what I'm trying:

```
var myRe = /^NVOS[^"]*/g;
var myArray = myRe.exec(document.getElementById("txt").value);
console.log(myArray)
for (i in myArray){
console.log(i)
}

```

Not working.

Answer: 
The `qout` queue in the subprocess gets full. The data you put in it from `foo()` doesn't fit in the buffer of the OS's pipes used internally, so the subprocess blocks trying to fit more data. But the parent process is not reading this data: it is simply blocked too, waiting for the subprocess to finish. This is a typical deadlock.
I was trying to `.get()` an async worker after the pool had closed

indentation error outside of a with block

**i had this**

```
with multiprocessing.Pool() as pool:
    async_results = list()
    for job in jobs:
        async_results.append(
            pool.apply_async(
                _worker_func,
                (job,),
            )
        )
# wrong
for async_result in async_results:
    yield async_result.get()

```

**i needed this**

```
with multiprocessing.Pool() as pool:
    async_results = list()
    for job in jobs:
        async_results.append(
            pool.apply_async(
                _worker_func,
                (job,),
            )
        )
    # right
    for async_result in async_results:
        yield async_result.get()

```