All Questions
17 questions
0
votes
2
answers
330
views
php remove duplicates from string, if duplicate length is > 4
I want to remove duplicates, if these duplicates got a length of more then 4 characters.
How can we achieve that? My current code also remove the duplicate - values.
CODE:
$seoproducttitle = 'HP ...
-1
votes
2
answers
69
views
Regular Exp find duplicate phrases 2 sequentially words in a pattern
I would like to catch 2 words sequentially duplicated in a pattern
I would like to be able to catch duplicate words in this case "cancer cervical" because they are the only duplicate 2 words ...
1
vote
3
answers
81
views
How clear duplicate consecutive non-alphabetic characters in a string?
Matching the string only for: ,.:- how I can remove duplicate values from a string? For example having:
"ab::::c ---------d,,,e ..........f ::a-b,,,c..d"
Expected output:
"ab:c -d,e .f :a-b,c.d"
2
votes
2
answers
85
views
RegEx match parent items containing duplicates
The title is probably confusing, but I have no idea how to properly phrase this.
So here's my goal. I have this string (or something like it):
[some_element]Random string chars [some_element]Ramdon[/...
9
votes
4
answers
7k
views
Why is preg_match_all returning two matches?
I am trying to identify if a string has any words between double quotes using preg_match_all, however it's duplicating results and the first result has two sets of double quotes either side, where as ...
0
votes
1
answer
50
views
How Cleanup any non alphanumeric characters before comparing the string? [duplicate]
I have used this function to check user ID to avoid duplication, this is the code :
<?php
require_once('includes/config.php');
if(isset($_GET['Uid'])){
$Uid = $_GET['UID'];
$...
0
votes
1
answer
84
views
I want to Check how to avoid Duplicated title by excluding the spaces,numbers and symbols?
Here what i used in script:
<script type="text/javascript">
function kontroluser()
{
$('#sonuc_geluser').html('');
var val = $('#username').val(); //...
0
votes
1
answer
148
views
How to delete Duplicates on a Text
I want a tool or how to use notepad++ or any other tools to delete both duplicates lines in a text,
all tools I found delete only the duplicate line and leaves the original
I want to delete them ...
1
vote
1
answer
336
views
PHP preg_replace markdown issue - detecting duplicates
In a project I am building I would like to use markdown as follows
*text* = <em>text</em>
**text** = <strong>text</strong>
***text*** = <strong><em>text</em>&...
2
votes
1
answer
173
views
Can't remove repeating word syllable - PHP regex
Last day, I try to remove repeating word sylable like : haha dadada wkwkwk etc
I try use this : preg_replace("/^(.*)(\\1+)$/", "", $text)
Now, I get a problem. the case is, if :
$text=haha or $text=...
4
votes
4
answers
782
views
PHP - remove duplicate syllable word
i'm new and wanna know how to using regex in php.
if i have text like "haha" "abcabcabc" "hehehe" "cupcupcupcup" (contain duplicate of syllable word).
How to remove that text?
(say $text="cupcupcup";...
3
votes
4
answers
3k
views
Regex expression for matching all duplicate substrings of any length
Let's say we have a string: "abcbcdcde"
I want to identify all substrings that are repeated in this string using regex (i.e. no brute-force iterative loops).
For the above string, the result set ...
1
vote
2
answers
826
views
Repeated pattern inside URL [closed]
Could someone help us with a regular expression in order to detect repeated patterns inside a URL string? The goal is obviously to detect malformed weird URLs.
For example, the following URLs are ...
2
votes
2
answers
1k
views
Remove duplicated words from a space delimited string
I have string:
$s = 'Артгалерея Живопись Африка и от the Albert$Lizah, L-77, Christ UF1.1 (Christ).';
I wish to receive in a array the next string:
$s = 'Артгалерея Живопись Африка Albert Lizah ...
3
votes
1
answer
805
views
remove duplicate addresses from google maps api results
I am using the Google Maps API to allow users to enter their location and return results based on their location. However, when I enter some addresses in Australia I am getting duplicates such as:
...