Barotrauma Regex Tutorial Part 1.0: Character Classes

Поделиться
HTML-код
  • Опубликовано: 30 ноя 2024

Комментарии • 50

  • @DimensionalExpansion
    @DimensionalExpansion Год назад +11

    Please continue this series. You will be considered a saint in the community. At the very least, you will be a saint to me.

    • @Rogvaldr
      @Rogvaldr  Год назад +1

      Haha thanks man that's very kind of you to say! I am considering more Barotrauma tutorial content in the future so stay tuned.☺

  • @Antoine-bv8vs
    @Antoine-bv8vs Год назад +1

    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

    • @Rogvaldr
      @Rogvaldr  Год назад

      Hahaha that's amazing! And you're most welcome!

  • @ИванИванов-л3ю6с
    @ИванИванов-л3ю6с 5 месяцев назад +1

    thank you mate for all these 4 videos about this component

  • @FlamingToaster
    @FlamingToaster Год назад +11

    Really good content! I hope you continue this series as there is not much videos regarding RegEx in Barotrauma (besides few simple examples)

    • @Rogvaldr
      @Rogvaldr  Год назад +1

      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!

  • @fantomkl1142
    @fantomkl1142 5 месяцев назад +2

    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.

  • @dominikcejka8828
    @dominikcejka8828 Год назад +4

    Wow! Best regex baro tutorial I have came across! Really good explanation, I hope for more parts to come! Subscribed.

  • @FreeD00M
    @FreeD00M 5 месяцев назад

    Nice Tutorial Clear and Concise.

  • @ShinraSetora
    @ShinraSetora Год назад +1

    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 !

    • @Rogvaldr
      @Rogvaldr  Год назад

      That's amazing! I'm so glad the explanation helped open up new horizons for you! Happy subbing! ⚓

  • @illadiel6049
    @illadiel6049 Год назад

    Got an ad break as soon as you said, "And now, a word from our sponsors"

    • @Rogvaldr
      @Rogvaldr  11 месяцев назад

      Haha those youtube algorithms!

  • @Mik-hm9tb
    @Mik-hm9tb Год назад +1

    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 >:-] ).

    • @Rogvaldr
      @Rogvaldr  Год назад

      That's awesome! Regex with other components can do amazing things! :D

  • @SonicGasoline
    @SonicGasoline Год назад

    Thank you for taking the time to make this!

    • @Rogvaldr
      @Rogvaldr  Год назад

      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! 😄

  • @Druler5
    @Druler5 9 месяцев назад

    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?

    • @Rogvaldr
      @Rogvaldr  8 месяцев назад

      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!

  • @shortround9869
    @shortround9869 Год назад

    I'm curious, what if 2 expressions conflict each other, what happens to the output?

    • @Rogvaldr
      @Rogvaldr  Год назад

      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.

  • @anvion1161
    @anvion1161 Год назад +3

    we need more tutorials on baro wiring, thank you sm

    • @Rogvaldr
      @Rogvaldr  Год назад +1

      That's a great suggestion! I'm no electrical engineer but I'll certainly give this some thought for the near future. Thank you!

  • @chadoftoons
    @chadoftoons Год назад

    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.

    • @Rogvaldr
      @Rogvaldr  Год назад

      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.

  • @Sprayer-px3tu
    @Sprayer-px3tu Год назад

    Rejular Expressions!

  • @jameskim6398
    @jameskim6398 Год назад

    Thank you for this helpful video

    • @Rogvaldr
      @Rogvaldr  Год назад

      You're most welcome! :D

  • @daviconceicaodeoliveira3232
    @daviconceicaodeoliveira3232 Год назад

    how do i make so that specific numbers get choosen to send a signal, like only a range of numbers from 0 to 12

    • @Rogvaldr
      @Rogvaldr  Год назад

      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.

  • @grandfremdling3841
    @grandfremdling3841 Год назад

    Nice

  • @Noteclip
    @Noteclip Год назад +3

    the devs really tricked everyone into learning a tool that is useful outside of a game...

    • @Rogvaldr
      @Rogvaldr  Год назад

      Haha yeah! Clever game features.

    • @phoomham9217
      @phoomham9217 3 месяца назад

      "The more you know"

    • @itsmenatika
      @itsmenatika 20 дней назад

      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

  • @lucasbastosrodrigues140
    @lucasbastosrodrigues140 4 месяца назад

    :)

  • @alecu5885
    @alecu5885 Год назад

    how do you know all this

    • @Rogvaldr
      @Rogvaldr  Год назад

      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. :)

  • @Loshode
    @Loshode Год назад

    Regex jumpscare

  • @binhtang5764
    @binhtang5764 Год назад

    man i feel like highschool again

    • @Rogvaldr
      @Rogvaldr  11 месяцев назад

      Good times! :D

    • @binhtang5764
      @binhtang5764 11 месяцев назад

      @@Rogvaldr it suck btw

    • @Rogvaldr
      @Rogvaldr  11 месяцев назад

      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! :)

  • @esistgemingzeit
    @esistgemingzeit 11 месяцев назад

    dude how can you make such an elaborate tutorial and still call it "rejex" you wouldnt say "rejular expression" would you

    • @Rogvaldr
      @Rogvaldr  9 месяцев назад

      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