I know there are a lot of questions similar to this one, Proving a language is regular is just one example. However, I have not managed to find an answer that really answers my question. I'm currently studying for an exam in automata theory, and hence trying to understand how it all works. So, given the following language, how do I determine whether it is regular or not?
$L_1 = \{uvu^{rev} : u, v \in \{a, b\}^*\ and\ \lvert u \rvert = 2\}$
I'm not quite sure how I should be approaching this issue, and how $u^{rev}$ and $\lvert u\rvert$ affect the regularity of a language. My get instinct would be that a machine could handle the reverse if we know its length, but not otherwise, but I can't tell exactly why that would be true. Or perhaps it is that the middle part must be known and we must know the length of $v$ instead?
Furthermore, the problem continues with a second language
$L_1 = \{uvu^{rev} : u, v \in \{a, b\}^*\ and\ \lvert v \rvert = 2\}$
So the exact same language, but we now know the length of $v$.
It's clear to me that one of the languages is regular and the other not, but I am struggling to find a good explanation as to why that is, and how to properly argue for either.
It should also be noted that the question specifies that
If the expression is regular, a regular expression and/or closure properties should be used to prove this. Otherwise, a proof using the pumping lemma should be given.
I'm not quite sure how to approach this, so any help would be much appreciated, and preferably not just a solution but an explanation for it too!