Yes, actually we can handle the spaces with regex, but I have not find the correct pattern to do it.
Changing the print statement maybe work, I am trying to do it now. When I remove trim(), the...
Type: Posts; User: white canvas
Yes, actually we can handle the spaces with regex, but I have not find the correct pattern to do it.
Changing the print statement maybe work, I am trying to do it now. When I remove trim(), the...
Does it mean that I need to change my print statement rather than changing the regular expression?
[^aeiou] = Match a single character not present in the list (a,e,i,o,u) - consonant(s)
[aeiou] =...
My regular expression cannot allow space between words. When I input a word without spaces, it works well. However, when I have input with spaces, for example:
Two peas in a pod
My current output...
Thank you for your suggestion. I have edited it.
Hi, I am learning how to use regex to split a word into syllables and then add a letter “p” and repetition after each syllable. If a syllable starts with a consonant(s), then the consonant(s) should...