Bug Report Automatic Scene Switcher Shows Invalid Regular Expression

rahulraj

New Member
I tried to add a scene for automatic switch under automatic scene switcher window and I get the below error:
1556349821606.png


Please let me know how do I fix this?
I saw this post: https://obsproject.com/forum/thread...ow-with-will-not-add-to-the-scene-list.64322/

But I'm not sure where to make the changes and how that will vary in my case?
Your response is highly appreciated. Thank you :)
 

koala

Active Member
The dialog tries to add the lengthy title with its file path and many backslashes as regular expression, and since this is an invalid regular expression, the error occurs. You have to edit the line to contain a valid regular expression before you can add it. Several characters, for example \ [ ] . have special meanings in a regular expression.
A web page that may help with building regular expressions may be this: https://regexr.com/
The best approach for regex-beginners is probably to identify one single word that uniquely identifies the title and use none of the special regex features with \ and [ ]. If there is one path part in your title that is enough to identify the window, just use this word. Perhaps "03_Building Deep" is already enough instead of the complete title.
 

rahulraj

New Member
Thank you all for your responses. I have fixed the issue by simply keeping the name "Intellij" instead of the lengthy window name. It still matched the window name and picked up Intellij IDE window :)
 
Top