 Let's carry on by looking at splitting and joining strings. Now the method for the plus function in Julia cannot handle strings There's no method for strings. In some languages you could say string plus another string to concatenate those two But you will remember from the lesson on functions that we can use multiplication There's a method for strings with the multiplication function So if I have I love times Julia now I have to put this little space there because The concatenation here will not buy by the multiplication function will not put a space for you But if I were to just run that I'm gonna have I love Julia all in one go Now there's also this string function and it takes all different arguments and the arguments here are two Strings again I've got to put my little space there because this concatenation is also not gonna put an automatic space for me So I can certainly do that Now let's repeat strings. What if you want to write out a few things things a couple of times here? We just use the powers. So I love Julia the string to the power three And if we do that it's going to repeat three times. I love Julia. I love Julia. I love Julia So that is the power function Now how do we split things there is the split function and what the split function is going to do with Without any arguments except for the string. It's just going to look for the space character So let's run this. Let's see what happens And if I split that it's going to have I love and Julia so it's split on the three on the two spaces and It made three different Substrings here. You can see this as an array three element array of substrings of Eski strings, and there's just one one dimension one column So there I have love Julia so the space spaces as you can see are removed But I can put a second argument in and that is where we just look at What we want the split to be so instead of putting no argument and it using space We can say well, please split for me on oh Let's see what happens there So I space L the O is gone and that's where the split is and then V e Etc. And then the split is at there's a space there the split is at the O for obviously and another O in obviously Let's see what happens if I use the split function and instead of just a Single value there you can see there that I use double quotation marks So that's actually a string not a character And if I what would what would happen if I put something more than just a single Character in there and as you can imagine it splits on that word love and it removes that From our array that is the solution now. What if I want to split everything? Well, I just use this double quotation marks that is empty inside and now I have everything split Remember as we did before by the index and just using a little for loop Now we're going to look at regular expressions a bit later, but in the meantime have a look at this I'm gonna create this computer variable called str underscore r and I'm going to put into it this string This is going to be a fairly extended sentence Let's run that I've put a semicolon there, so it's a pressure star put now look at this I'm going to say split This string, which is this is going to be a fairly extended sentence, but do it this way so instead of just a Whatever single letter I'm using this r function here that tells Julia that I'm dealing with a regular expression Yeah, as I said, we'll have a look an extensive look at that and And a and then this upright bar which is usually shift and backslash on say on the Mac OS keyboard But anyway a or e or I or oh or you let's see what happens now So whenever it finds either an a or an e on I on own you so all these vowels that I've selected here it's going to split and Look at that. That's quite an extensive split now once we split them something up like this We can join it up again So this means I'm going to join this split Which is just going to give me the sentence without that with all the vowels removed So this is going to be fairly extended sentence I see I think you can see what this is getting at so what I want to show you here is the split function and Once you split you can recombine them with a join function Next up we're going to look at converting our strings into into integers and some other conversions