The youtube ads kicked in right after you said "And now, a word from our sponsors", I've never witnessed such perfect timing in my life. Thanks a lot for the videos :D
Thank you so much! Yes, there isn't much out there. I struggled to understand it for that reason. So I made something more in-depth and fundamental. More to come in the next few months!
I didn’t find anything about regex on Russian-language RUclips, so I came here. Thank you, my English-speaking colleague, you really helped me understand.
Thank you very much for the explanation, all your vids on regex were very well explained, very useful, I could use it to make new things in my sub that I didn't think I would be able to, great vid !
Wow, ty for covering this. My mind came up with ultimate plan already. That is, combining regex component with logic gates and operating fully automatic submarine, like 'push that button and it will do the rest'. I know there is autopilot, but while impressive in navigating around cliffs it's not as flexible as human captain would be (or my fabulous sub' operating system >:-] ).
Thanks for the intro to regex! It was really confusing me. What's confusing me even more is that a Memory + Terminal -> Concat -> Regex doesn't seem to work. Always producing a False Output no matter what syntax I try. Would you be able to know anything about resolving that?
You're welcome! I'm glad this video cleared some things up. As for your question about memory/terminal/concat use with regex, I tried this on my end and I was able to get a True Output using your combination. I hooked up every component's output to a Text Display so I could see everything that was happening while I configured it. I noticed Concat does not update until there is a new input in the Terminal. Here were my inputs for each component: Memory - a Terminal - b Concat combined this as - ab Regex Expression - \w Regex Output - PASS Regex False output - FAIL Tick on Regex Continuous output. Based on the above configuration, the output said "PASS". For comparison, I used \d and it said "FAIL". So it worked as expected. So maybe try replicating that first and if it works, then see what you can adjust from there. I hope that helps!
I feel like what is missing in the video is saying wheter the output can be what you found in barotrauma because while finding what you are looking for and outputting something completly different is useful its just as useful to be able to output what you have found and if you can't do that what you can do instead.
That's a really good point! At 1:22, I should have said something more like this: Output indicates something you found or not found, and the result displayed is copied from a direct entry (e.g. via a Memory component) or a capture group.
I love this question! It's quite complicated to pull off and this video does not cover enough basics for it. My upcoming barotrauma tutorials will cover this in more detail. But here's a quick solution: ^\d?\d$ This accepts everything from 0 to 99. Searching for 0 to 12 will look more like this: ^(10|11|12|\d)$ So anchors, alternation and a capture group is used to give you specific control over what you are searching for.
It's just like learning binary system and coordinate system by Minecraft lol Everything is jointed together and you don't waste your time playing games if they're the right games
Please continue this series. You will be considered a saint in the community. At the very least, you will be a saint to me.
Haha thanks man that's very kind of you to say! I am considering more Barotrauma tutorial content in the future so stay tuned.☺
The youtube ads kicked in right after you said "And now, a word from our sponsors", I've never witnessed such perfect timing in my life. Thanks a lot for the videos :D
Hahaha that's amazing! And you're most welcome!
thank you mate for all these 4 videos about this component
Really good content! I hope you continue this series as there is not much videos regarding RegEx in Barotrauma (besides few simple examples)
Thank you so much! Yes, there isn't much out there. I struggled to understand it for that reason. So I made something more in-depth and fundamental. More to come in the next few months!
I didn’t find anything about regex on Russian-language RUclips, so I came here. Thank you, my English-speaking colleague, you really helped me understand.
Wow! Best regex baro tutorial I have came across! Really good explanation, I hope for more parts to come! Subscribed.
Thanks so much!
Nice Tutorial Clear and Concise.
Thank you very much for the explanation, all your vids on regex were very well explained, very useful, I could use it to make new things in my sub that I didn't think I would be able to, great vid !
That's amazing! I'm so glad the explanation helped open up new horizons for you! Happy subbing! ⚓
Got an ad break as soon as you said, "And now, a word from our sponsors"
Haha those youtube algorithms!
Wow, ty for covering this. My mind came up with ultimate plan already. That is, combining regex component with logic gates and operating fully automatic submarine, like 'push that button and it will do the rest'. I know there is autopilot, but while impressive in navigating around cliffs it's not as flexible as human captain would be (or my fabulous sub' operating system >:-] ).
That's awesome! Regex with other components can do amazing things! :D
Thank you for taking the time to make this!
Thanks so much! It took a lot of work but totally worth it. And thank you for watching and commenting so others can find it too! 😄
Thanks for the intro to regex! It was really confusing me. What's confusing me even more is that a Memory + Terminal -> Concat -> Regex doesn't seem to work. Always producing a False Output no matter what syntax I try. Would you be able to know anything about resolving that?
You're welcome! I'm glad this video cleared some things up. As for your question about memory/terminal/concat use with regex, I tried this on my end and I was able to get a True Output using your combination.
I hooked up every component's output to a Text Display so I could see everything that was happening while I configured it. I noticed Concat does not update until there is a new input in the Terminal. Here were my inputs for each component:
Memory - a
Terminal - b
Concat combined this as - ab
Regex Expression - \w
Regex Output - PASS
Regex False output - FAIL
Tick on Regex Continuous output.
Based on the above configuration, the output said "PASS". For comparison, I used \d and it said "FAIL". So it worked as expected. So maybe try replicating that first and if it works, then see what you can adjust from there. I hope that helps!
I'm curious, what if 2 expressions conflict each other, what happens to the output?
It'll probably be fine and just output both because all you're telling regex to do is find (for example) a number followed by a non-number.
we need more tutorials on baro wiring, thank you sm
That's a great suggestion! I'm no electrical engineer but I'll certainly give this some thought for the near future. Thank you!
I feel like what is missing in the video is saying wheter the output can be what you found in barotrauma because while finding what you are looking for and outputting something completly different is useful its just as useful to be able to output what you have found and if you can't do that what you can do instead.
That's a really good point! At 1:22, I should have said something more like this:
Output indicates something you found or not found, and the result displayed is copied from a direct entry (e.g. via a Memory component) or a capture group.
Rejular Expressions!
Yeah!
Thank you for this helpful video
You're most welcome! :D
how do i make so that specific numbers get choosen to send a signal, like only a range of numbers from 0 to 12
I love this question! It's quite complicated to pull off and this video does not cover enough basics for it. My upcoming barotrauma tutorials will cover this in more detail. But here's a quick solution:
^\d?\d$
This accepts everything from 0 to 99. Searching for 0 to 12 will look more like this:
^(10|11|12|\d)$
So anchors, alternation and a capture group is used to give you specific control over what you are searching for.
Nice
Thanks!
the devs really tricked everyone into learning a tool that is useful outside of a game...
Haha yeah! Clever game features.
"The more you know"
It's just like learning binary system and coordinate system by Minecraft lol
Everything is jointed together and you don't waste your time playing games if they're the right games
:)
how do you know all this
I had to study it using several web articles and test things out in Barotrauma, which has a unique game environment. I had help from friends too. :)
Regex jumpscare
lol
man i feel like highschool again
Good times! :D
@@Rogvaldr it suck btw
I'm sorry to hear that. High school can be tough. I hope life is getting better now for you. Or at least enjoying some barotrauma diving! :)
dude how can you make such an elaborate tutorial and still call it "rejex" you wouldnt say "rejular expression" would you
Hahaha yeah I dunno man that just seems to be how everyone else is saying it in my world. Plus it rolls of the tongue better for me :D