Click here to Skip to main content
16,011,447 members
Home / Discussions / Web Development
   

Web Development

 
GeneralUsing CryptAPI with ASP Pin
avneeshb18-Sep-03 11:26
avneeshb18-Sep-03 11:26 
QuestionVBS scripting : How to access a HtmlDocument object ? Pin
Danoo18-Sep-03 3:35
Danoo18-Sep-03 3:35 
GeneralMFC to internet application Pin
John-Lucas Brown18-Sep-03 2:19
John-Lucas Brown18-Sep-03 2:19 
GeneralHelp with a regular expression Pin
Luca Leonardo Scorcia16-Sep-03 11:32
professionalLuca Leonardo Scorcia16-Sep-03 11:32 
GeneralRe: Help with a regular expression Pin
Paul Watson17-Sep-03 22:44
sitebuilderPaul Watson17-Sep-03 22:44 
GeneralRe: Help with a regular expression Pin
Gary R. Wheeler20-Sep-03 5:44
Gary R. Wheeler20-Sep-03 5:44 
GeneralRe: Help with a regular expression Pin
Paul Watson20-Sep-03 5:53
sitebuilderPaul Watson20-Sep-03 5:53 
GeneralRe: Help with a regular expression Pin
Nathan Ridley28-Sep-03 3:18
Nathan Ridley28-Sep-03 3:18 
The problem with regular expressions is that they don't have numerical checking. So basically you can't check for a number in the normal way. You could probably check using this sort of method:

([1-9]|([0-9]+[0-9]))([5-9][0-9])

I think that should work, but you'd have to try it. The other part, of course, is matching strings that DON'T have a certain word, in your case, the height tag. This took me ages to work out how to do, but I eventually worked it out. You have to use a "negative look-ahead match", which basically says, "match this character if it is NOT followed by the next string". So you basically specify what comes first, then use brackets to group together acceptable characters (in the following example, anything that isn't a triangle bracket), and INSIDE the brackets, you put a negative lookahead match, then close the brackets and put a + or *. This seems to work nicely. So the following regular expression should work in checking for an image tag that doesn't contain a height field. You'll have to run an additional search to find img tags that have a height field but are more than 150 in height.

<img(([^<>](?!height))*)>
replace with:
&lt;$1&gt;

This, unfortunately will invalidate tags that have height in an alternate context, for example, a tag like this:
<img src="http://heights.com/x.gif">

Regular expressions can be tricky to explain. Check out microsoft's site for more info, that's where I learned.

NATHAN RIDLEY
Web Application Developer
generalgherkin@yahoo.com
Generaladding float numbers in javascript Pin
haritadala16-Sep-03 10:43
haritadala16-Sep-03 10:43 
GeneralRe: adding float numbers in javascript Pin
Roger Wright18-Sep-03 6:15
professionalRoger Wright18-Sep-03 6:15 
Generalerror with application scope objects Pin
lejuan515016-Sep-03 5:53
lejuan515016-Sep-03 5:53 
GeneralRe: error with application scope objects Pin
Paul Watson17-Sep-03 22:56
sitebuilderPaul Watson17-Sep-03 22:56 
Generallooking for a host that has Dundas Upload and Mail companant Pin
Anonymous16-Sep-03 4:48
Anonymous16-Sep-03 4:48 
GeneralReduce flickering when reloading a jpeg. Pin
peenu14-Sep-03 22:41
peenu14-Sep-03 22:41 
GeneralRe: Reduce flickering when reloading a jpeg. Pin
Paul Watson16-Sep-03 2:29
sitebuilderPaul Watson16-Sep-03 2:29 
GeneralEdit MSHTML Document in C# Pin
Jasper4C#13-Sep-03 22:22
Jasper4C#13-Sep-03 22:22 
GeneralRe: JavaScript and Server.CreateObject Pin
SimonS14-Sep-03 3:48
SimonS14-Sep-03 3:48 
Generalinternet explorer plugin Pin
player112-Sep-03 3:51
player112-Sep-03 3:51 
GeneralVirtual Directory Issues Pin
lapoorpo10-Sep-03 19:28
lapoorpo10-Sep-03 19:28 
GeneralRe: Virtual Directory Issues Pin
Jagadeesh VN11-Sep-03 20:55
Jagadeesh VN11-Sep-03 20:55 
GeneralList Serv Pin
eyespike110-Sep-03 3:53
eyespike110-Sep-03 3:53 
Generalrun a dos program with parametres, clicking a link in ie Pin
joan vidal9-Sep-03 23:53
joan vidal9-Sep-03 23:53 
GeneralRe: run a dos program with parametres, clicking a link in ie Pin
Jagadeesh VN10-Sep-03 9:56
Jagadeesh VN10-Sep-03 9:56 
Generalruntime error when modifying parent variables after posting data Pin
haritadala9-Sep-03 10:22
haritadala9-Sep-03 10:22 
GeneralRe: runtime error when modifying parent variables after posting data Pin
Jagadeesh VN10-Sep-03 10:03
Jagadeesh VN10-Sep-03 10:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.