Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8033557
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T01:44:12+00:00 2026-06-05T01:44:12+00:00

I am trying to determine in which column the name Phone appears, by checking

  • 0

I am trying to determine in which column the name “Phone” appears, by checking the HTML of a web page.
The string in which I am doing the search looks like this :

<tr class="C1">
<td>Name</td>
<td>Address</td>
...
...   < some more columns, but their number is not fixed >
...
<td>Phone</td>
...
...    <more columns>
...
</tr>

Is it possible to determine using regular expressions ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T01:44:15+00:00Added an answer on June 5, 2026 at 1:44 am

    From the viewpoint of theoretical computer science: It is not possible, since tables could be nested; and regular expressions generally cannot cope with nested structures (you need a Typ-2-Grammer (Chomsky-Hierarchy), i.e. a Parser, to analyse the structure of a html-Text, it’s not Typ-3, i.e. regular).

    From a practical viewpoint, however, if you assume, that the tables are not nested, you could use a RegEx to extract table rows (something like <tr (?!</tr>)*</tr>), match the entries afterwards (something like <td (?!</td>)*</td>) to produce a List of columns and search that list for an Entry containing the string "Phone"….

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to determine which tab has been selected by the user. I melded
I am trying to determine which implementation of the data structure would be best
I am trying to use an 'if' statement to determine which element was clicked.
I am trying to determine the type of a property which an attribute relates
I'm trying to determine what would be the most efficient/recommended way of doing this--I
Trying to determine if it is possible to bind the SelectedValue of a ComboBox
I trying to determine display vertical size of my Blackberry Storm 2. I know,
So I am trying to determine if this is a bug or browser caching
I am trying to determine the midpoint between two locations in an MKMapView .
I'm trying to determine how to access the data that is in my JObject

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.