Question: I have the number, say 900.
I extract a string with the format `"x <= int (int, int)"` for example. `"x <= 900 (4, 7)"`
I want to verify that it matches the format `"x <= 900 (int, int)"`

How can I do it using String pattern matchers?

I have tried the following so far, the result is false.

```
1)        Pattern pattern = Pattern.compile("x <= 900 (\\d, \\d)");
2)        Pattern pattern = Pattern.compile("x <= 900 ([0-9], [0-9])");

        String expectedString = "x <= 900 (4, 7)";

        Matcher m = pattern.matcher(expectedString);
        System.out.println(m.matches());

```

Answer: 
I commented above about having the same problem. Meanwhile I came across this [project](https://github.com/osorina/3d-headphones) and wondered why it works. **Long story short, it's configured as a SPA. I tried the same with my project and it works.**

So in *nuxt.config.js*

```
export default {
  mode: "spa",
  ..

```

So I guess the problem has to do with server-side rendering.

------ Some notes on Universal Mode ------

Since I wanted to use my app in universal mode I also tried to do conditional import of plugins.
**Note that the approach below doesn't work.** I do include it though, SPA might not be an option and it could point you in the right direction.

Move

```
import Vue from 'vue'
import { OrbitControls } from "three/examples/jsm/controls/OrbitControls"
Vue.use(OrbitControls)

```

into a *threeimports.js* file in the plugins folder and add

```
  plugins: [
   { src :"~/plugins/threeimports.js", ssr: false},
  ..

```

to the *nuxt.config.js*

I thought OrbitControls should be available from anywhere in the project, but it's not. It has to do with the curly bracket syntax, since the same mechanism works well with other modules that don't use the bracket syntax.
I don't know the structure of the file where you want to import from, but are you trying to import a default or just a module?

Because the default syntax does not have `{}`. Much like your first import. If what you're trying to import is set as a default export, you need to remove those brackets.

Read about [import in the MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import)