Ooh cool! I’ll check it out.
@AwesomeOnion do regex codes such as /s or /t work in the
match block? As in, could we compare a string of text and find those sections or do we need to specific a certain portion of text and have it match in full?
Find any part:
hello, how are you today?
Or, get the character at the first a’s index and directly compare to that one character?
Wait why do you seem so cool
Wow I didn’t know that, All check it out later
that’s helpful, cool
I also like this website for testing out RegEx
“Matches” is a Boolean – it returns 0 or 1.
I’d like to see a green “match” block (returns the actual matches, though HS does not have lists) and a replace block
Wow! Now I have to try it!
Unfortunately that link is blocked on my school iPad . I’ll be sure to check it out soon, though.
Yes it is for mee
Cool I’ll try that
And regex is the most confusing thing I have seen in programming
Ooo this is very cool, thank you for sharing it with us!
I still cant understand reg ex
This guide seems helpful for visualising!
I also often use this site for testing out regular expressions.
Yeah it can seem quite confusing. Maybe using regexr to play around with a few of the examples from the guide may help.
I have some examples here:
This regex has the characters
and, so it will match where those characters are next to each other (in that order). (It will match anywhere that
\b is for ‘word boundary’ (the start or end of a word — where a word character is next to a non-word character, I think).
If I add
\b to the end of
and, it will match anything that has the characters
and and is followed by a word boundary. (So it will match anything that ends in ‘
And if I had
\b to the start of that, it will match anything that has a word boundary at the start, followed by the characters
and, followed by a word boundary. (Now it will only match the word ‘
(The website also has a reference on the left of the page, so you can check the different things that can be used.
\b is just one of them)
And welcome back (lol you liked my projects recently)