Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

regexp wildcards on this string

Status
Not open for further replies.

spiveygb

Programmer
Jun 24, 2003
27
US
This is the string that I am using with RegExp:
(>)(02081500)(</A></TD><TD ALIGN=&quot;&quot;left&quot;&quot; NOWRAP WIDTH=&quot;&quot;475&quot;&quot;> )(TAR RIVER)
( </TD><TD NOWRAP> )(06/25 10:30)( </TD><TD>)(2.48)( </TD><TD>)(66)( </TD><TD>)(18.0)( </TD>)

However, I am really only interested in the even number elements - e.g., (02081500), (TAR RIVER), (06/25 10:30), etc. -- these will eventually be replaced with variables

Can anyone recommend a way to generalize the pattern so that it applies to the various html snippets as much as possible?

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top