palindrome
How does this PCRE pattern detect palindromes?
This ques开发者_运维问答tion is an educational demonstration of the usage of lookahead, nested reference, and conditionals in a PCRE pattern to match ALL palindromes, including the ones that can\'t b[详细]
2023-01-16 14:42 分类:问答Why will this recursive regex only match when a character repeats 2^n - 1 times?
After reading polygenelubricants\'s series of articles on advanced regular expressions techniques (particularly How does this Java regex detect palindromes?), I decided to attempt to create my own PCR[详细]
2023-01-16 10:05 分类:问答How does this Java regex detect palindromes?
This is the third part in a series of educational regex articles. It follows How does this regex find triangular numbers? (where nested references is first introduced) and How can we match a^n b^n wi[详细]
2023-01-15 00:55 分类:问答Checking for palindrome string in c
I am accepting a string as a command line argument. I want to check whether the inputted string is a palindrome or not and print the result. I have written the following code. But its displaying the r[详细]
2023-01-11 13:43 分类:问答How do you determine if a String is a palindrome? [duplicate]
This question already has answers here: Check string for palindrome (42 answers) Closed 7 years ago. How do you test if a given String is a palindrome in Java, without using any methods t[详细]
2023-01-10 06:00 分类:问答Count double palindromes in given int sequence
For a given int sequence check number of double palindromes, where by double palindrome we mean sequence of two same palindromes without break between them. So for example:[详细]
2023-01-03 02:42 分类:问答Regex of 1's and 0's
I got this question which asks me to figure out \"Why i开发者_Python百科s it foolish to write a regular expression for the language that consists of strings of 0\'s and 1\'s that are palindromes?\" (t[详细]
2022-12-28 06:07 分类:问答Taking User Input in Java
I\'m creating a program that checks if a word or phrase is a palindrome.I have the actual \"palindrome tester\" figured out.What I\'m stuck with is where and what to place in my code to have the conso[详细]
2022-12-26 23:56 分类:问答Check even/odd for Palindrome?
Is it a good idea to check for odd/even length of a palindrome number/string? Most snippets I came across don\'t do this basic test. If length is even, it can\'t be a palindrome, no?[详细]
2022-12-17 08:55 分类:问答Checking to see if a string is a palindrome with String.equals()
I had a question regarding a basic program I was writing said whether a wor开发者_JAVA百科d such as racecar is a palindrome or not.[详细]
2022-12-10 00:14 分类:问答