Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re^3: Regular Expression: search two times for the same number of any signs -- no regex at all (updated)by Discipulus (Canon) |
on Nov 29, 2016 at 12:23 UTC ( [id://1176795]=note: print w/replies, xml ) | Need Help?? |
Ok you are right, so because i have no patience at all with regexes you can exploit the fact that your valid strings are always odd; they start and end with x and another x must be in the middle.
L* UPDATE: it can be semplified, or golfed, a lot using 5.010
L*
There are no rules, there are no thumbs.. Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.
In Section
Seekers of Perl Wisdom
|
|