How to fix regularone expression?

Need regular expression to fit the following pattern:
  • a
  • ababa
  • babababa


not podhola under:
  • aa
  • abaa
  • babbab


I wrote a(ba)* but still allocates that don't need help to fix
April 4th 20 at 13:06
1 answer
April 4th 20 at 13:08
Solution
but without line end character ($) and beginning (^) if? - drew_Dietri commented on April 4th 20 at 13:11
@drew_Dietri, \b a word boundary https://regex101.com/r/hlCPEC/2/ - Ceasar.Bradtke commented on April 4th 20 at 13:14
@Ceasar.Bradtke, thank you!
resolution the list of symbols which is given in the task )( . ? * +
but I realized that without the limiters still can't be, so just point out everything in between as a solution - drew_Dietri commented on April 4th 20 at 13:17

Find more questions by tags Regular expressions