regular expression questions???
-
Hi, I want get all the occurences for one string (e.g. keyword) in an ASP or html file. But I want to ignore some special html/asp tag that includes the searched string (in my case it is "keyword"). for example: 1) this is a test keyword string. (I want this) 2) the is second keyword anchor (I don't want this) 2) <% 'this is keyword in asp code %> (I don't want this) I know regular express may solve this problem. But I don't know how?? Can somebody give me an example regular exression for this?? Thanks a lot!
Alan Shen MCAD for .NET Version ^~^~^~^~^~^~^~^~^~^~^ Great idea is the beginging of success!
-
Hi, I want get all the occurences for one string (e.g. keyword) in an ASP or html file. But I want to ignore some special html/asp tag that includes the searched string (in my case it is "keyword"). for example: 1) this is a test keyword string. (I want this) 2) the is second keyword anchor (I don't want this) 2) <% 'this is keyword in asp code %> (I don't want this) I know regular express may solve this problem. But I don't know how?? Can somebody give me an example regular exression for this?? Thanks a lot!
Alan Shen MCAD for .NET Version ^~^~^~^~^~^~^~^~^~^~^ Great idea is the beginging of success!
This whould be a bad place to ask this type of question Mr. Shen. You might want to post in another forum on the site. Nobody will answer it here.
ROFLOLMFAO
-
Hi, I want get all the occurences for one string (e.g. keyword) in an ASP or html file. But I want to ignore some special html/asp tag that includes the searched string (in my case it is "keyword"). for example: 1) this is a test keyword string. (I want this) 2) the is second keyword anchor (I don't want this) 2) <% 'this is keyword in asp code %> (I don't want this) I know regular express may solve this problem. But I don't know how?? Can somebody give me an example regular exression for this?? Thanks a lot!
Alan Shen MCAD for .NET Version ^~^~^~^~^~^~^~^~^~^~^ Great idea is the beginging of success!
Do not post programming questions (use the programming forums for that) and please don't post ads. And so please post your questions in the suitable forum. and also before posting your questions just read the guidelines and then do it. Here(in Lounge) no one will help.
SSK. Anyone who says sunshine brings happiness has never danced in the rain.
-
Do not post programming questions (use the programming forums for that) and please don't post ads. And so please post your questions in the suitable forum. and also before posting your questions just read the guidelines and then do it. Here(in Lounge) no one will help.
SSK. Anyone who says sunshine brings happiness has never danced in the rain.
Well said Satips!
Co-Author ASP.NET AJAX in Action CP Quote of the Day: It is the same Friday that blooms as a new enriching day with novelty and innovation for us every week. - Vasudevan Deepak Kumar
-
Hi, I want get all the occurences for one string (e.g. keyword) in an ASP or html file. But I want to ignore some special html/asp tag that includes the searched string (in my case it is "keyword"). for example: 1) this is a test keyword string. (I want this) 2) the is second keyword anchor (I don't want this) 2) <% 'this is keyword in asp code %> (I don't want this) I know regular express may solve this problem. But I don't know how?? Can somebody give me an example regular exression for this?? Thanks a lot!
Alan Shen MCAD for .NET Version ^~^~^~^~^~^~^~^~^~^~^ Great idea is the beginging of success!
^.*$ or ^(.(.(.(.(.(.(.(.(.(.(.(.(.(.*)*)*)*)*)*)*)*)*)*)*)*)*)*)$ ;)
I'm largely language agnostic
After a while they all bug me :doh:
-
Hi, I want get all the occurences for one string (e.g. keyword) in an ASP or html file. But I want to ignore some special html/asp tag that includes the searched string (in my case it is "keyword"). for example: 1) this is a test keyword string. (I want this) 2) the is second keyword anchor (I don't want this) 2) <% 'this is keyword in asp code %> (I don't want this) I know regular express may solve this problem. But I don't know how?? Can somebody give me an example regular exression for this?? Thanks a lot!
Alan Shen MCAD for .NET Version ^~^~^~^~^~^~^~^~^~^~^ Great idea is the beginging of success!
A search on google will turn up a ton of sites that have libaries of posts of searchings of similar types. The first step for anyone starting to work with Regular Expressions is: http://www.ultrapico.com/Expresso.htm[^] Cool free tool to help build and test RegEx!
Rocky <>< Blog Post: Silverlight goes Beta 2.0 Tech Blog Post: Cheap Biofuels and Synthetics coming soon?
-
Hi, I want get all the occurences for one string (e.g. keyword) in an ASP or html file. But I want to ignore some special html/asp tag that includes the searched string (in my case it is "keyword"). for example: 1) this is a test keyword string. (I want this) 2) the is second keyword anchor (I don't want this) 2) <% 'this is keyword in asp code %> (I don't want this) I know regular express may solve this problem. But I don't know how?? Can somebody give me an example regular exression for this?? Thanks a lot!
Alan Shen MCAD for .NET Version ^~^~^~^~^~^~^~^~^~^~^ Great idea is the beginging of success!
I have to ask if you're always this stupid or have you made an extra effort today? This is the lounge - so no programming questions. You remind me of the saying "Brains and looks aren't everything. In fact, in your case they are absolutely nothing."
Small Rat wrote:
MCAD for .NET Version
So why are you asking about ASP?
Deja View - the feeling that you've seen this post before.
-
Well said Satips!
Co-Author ASP.NET AJAX in Action CP Quote of the Day: It is the same Friday that blooms as a new enriching day with novelty and innovation for us every week. - Vasudevan Deepak Kumar
Thanks Rama.
SSK. Anyone who says sunshine brings happiness has never danced in the rain.
-
Thanks Rama.
SSK. Anyone who says sunshine brings happiness has never danced in the rain.
You're welcome, Satips.
Nobody can give you wiser advice than yourself. - Cicero .·´¯`·->ßRÅhmmÃ<-·´¯`·.