SunQuest
           UNIX Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsUNIX Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old January 5th, 2004, 01:23 AM
methodmano methodmano is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2003
Posts: 63 methodmano User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 37 m 19 sec
Reputation Power: 6
Regular Expressions Issue

I'm not sure if this is the correct forum for my question, but it's the cloest I could find.

I'm using NoteTab (notetab.com) to do some html coding. In the Help menu, it says: Those familiar with UNIX text utilities will find that the engine is somewhere between EGREP and AWK with regard to the complexity of problems that it can solve.

Basically, I have 12 pages that I would like to error check using regular expressions. I've only used RE sparingly, so I'm not sure how to construct the statment.

What I would like to do is find instances of the following group of code where the X's are not the same:

A<input type="radio" value="A" name="X">
B<input type="radio" value="B" name="X">
C<input type="radio" value="C" name="X">
D<input type="radio" value="D" name="X">

I have around 2500 radio button groups and would like to avoid checking them one by one. Any help would be greatly appreciated. Also, sorry if this is in the wrong place. Thanks!

Reply With Quote
  #2  
Old January 6th, 2004, 12:00 AM
jayakhanna jayakhanna is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Location: India
Posts: 61 jayakhanna User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
grep "[A-Z]<input type=\"radio\" value=\"[A-Z]\" name=\"[A-Z]\">" filename

Here filename contains the data to be searched for
__________________
Regards
JK

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsUNIX Help > Regular Expressions Issue


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway