I have the following string: LLLTTTLTLLLTT. The number of L's and T's are dynamic.
I tried to use regex "L+T+". It's not working as the number of occurrences is not only once. What is the right regex pattern to match?
Or try this regexp:
([LT]+)
The ( ) are not necessary depending what you want to achieve
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With