|
|
Browse by Tags
All Tags » regexp
Showing page 1 of 7 (62 total posts)
-
Hello,
I'm looking for a pattern that extracts the attributes inside an html element string
I came up with the following:
/<font\s[^>]*face="(.*?)" size="(.*?)" color="(.*?)"[^>]*>(.*?)<\/font>/si
but what if not all 3 attributes face, font and size are required?
is it possible to ...
-
I want to change a font element to an XHTML compatible variant.
e.g.
find
<font face="arial" size="1"
color="red" >hello world</font>
replace
<span
style='font-family: arial; font-size: 1; color: red;'>hello
world</span>
note:
- the font attributes can change order
- ...
-
I could really use some expert help. I’ve got this formula that will filter out just screen resolutions for mobile devices within Google Analytics, now I want to build a regex that filters screen resolutions for ranges 600-800 and then another that filers 1024-1600 and another for 1600+ This way it will allow me to group my visitors ...
-
I'm needing to validate a email address, and website url's for user registration for my site.
Here are the requirements for the Email
1. Email address must be between 9-50 characters long
2. @ must be required
Here is the rest of the requirements:
Email address must begin with alphanumeric characters a-z and 0-9 with ...
-
Hi, i got a dillema... for a company i need to make every occurence of it's company name to be in red and bold font.
i have writen a simple function that i can call and filter all text database records
Function companyName(inputText)
If inputText<>"" Then
companyName= ...
-
Hi,
Can anybody helpme to create a regex that allow number and coma in between
also we must allow only 10 comas in btween the nubmers..
ie. it wil be like 95,5,65,8,.... upto 10 numbers i can enter with coma seperated..
is it possible for that...???
-
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 ...
-
<meta name="keywords" content="IBM 7976KAG SYSTEM X3400 QC 1.60GHZ 2GB 3X73,sunucular, server, markalı sunucular, markalı server, hp sunucular, hp, ibm, ibm sunucular, ibm server, century server, century sunucular">
<meta name="description" content="Fiyat:1879$+KDV | Kdv Dahil:2.877,95YTL | Havale ile %3 ...
-
Hi I need a regular expression for email validation, it should excldue the email addresses with the following special characters.
\|/,;<> and spaces.
The rule for validating the email is : Email address must contain a single @, one or more periods, and any standard characters with the exception of spaces and the ...
-
Hey all,
Before I start, I just want to say that below you will find a modifier of "U". I know a lot of people say this should not be used, so if there is a way that my issue can be resolved where the U modifier won't be needed, great!
Language: PHP (4)
Users submit content via a wysiwyg ...
1 ...
|
|
|