|
|
Browse by Tags
All Tags » matching
-
I'm working in C# and need to validate an input string. Valid strings can contain 0 to 1 instances of the following characters - T, R, B, and/or L and can contain no other characters. The characters can appear in any order in the string. None or all of the characters can be present (the string can be empty or have up to 4 ...
-
I am using the Shorten URL in a text using Bit.ly PHP class by Muhammad Arfeen and I would like to replace his code with Philippe Leybaert's code. The original PHP code is below:
preg_match_all(’(((f|ht){1}(tp://|tps://))[-a-zA-Z0-9@:%_+.~#?&//=]+)’, $text, $hyperlinksArray);
Here is the same code with Philippe ...
-
I'm new to regex so please forgive if the solution is really simple.
I need a plain expression that matches or extracts (not sure if I'm using the correct terminology) a string of 8 digits from the end of a URL. I need to insert the expression into an off-the shelf software application that will compile various types of lists for ...
-
Hi, folks. I've been banging my head against this for a few days now, and have now run out of ideas. I'm new to this RegEx business, so I'm hoping I'm just missing a basic concept somewhere.
I am working on a project in which I need to match a series of commands recorded in a log file against a supplied list of commands that ...
-
hi there
I am wanting to extract sku code from image url that has two patterns.
In the first case the image url ending pattern is as follows
/images/uploads/19113604-5.jpg
/images/uploads/19113604-4.jpg
/images/uploads/19113604-3.jpg
and I use regex
(?<=\buploads/)(\w+)
$1
this results in
19113604 which is what I want. ...
-
Hello everyone,
I'm pretty new to regexes and I've got a small problem. I have the following regex: (?<=lblVacant">(ab )?)([\d,.\/]+)(?=(<\/span>|\s\-)) which should match ose1_DetailEstateData1_lblVacant">06.08.2009 - 30.10.2009</span></td>
ailEstateData1_lblVacant">10.08.2009 - ...
-
Hello, I need help on matching and replacing text with different matched text from same string. My goal is to be able to batch process a large set of text files that each have similar patterns and replacement criteria. Below is an example of a typical case. In the example below, BOLD text replaces strikeout text:
TITLE: Beautiful Losers - ...
-
Hi there,
After hours of searching i found nothing that worked. I've got the following string and i want to match all parts between single quotes. It has to deal with user input so the next example is valid: (the both outer double quotes are to show what the sentence is)
"hello world, this is a 'quoted string' using ...
-
Hello, I am using C# in Visual Studio 2008. I have a text file of the entire Bible that I am wanting to either put into a database or write to an XML document. The format of the text is as follows with comments in C# single line comment style to the right of the actual text (example: Genesis //book ...
-
Hello,
Could you please help me with creating a regex to match good person name?
Good person name is:
Adam Mickiewicz
Bad person names are:
Adam Mickiewicz!
Adam! Mickiewicz
Adam Mickiewi-cz
Adam
Adam/
Adam\
ADAM MICKIEWICZ
Adam MiCkiewicz
Adam Mick,iewicz
Adam Mickiewicz,
Adam Mic!kiewicz
adam Mickiewicz
I tried to do ...
|
|
|