S
Sean
I am finally taking the time to get to know regex, but it seems I have
taken a bit of a tumble.
I have the following (dummy) data:
<td>Name:</td> <td>Kherie Kali</td>
If I use this expression: "<td>Name:</td>\s*<td>Kherie Kali</td>"
I indeed get a match.
The next step I took is to get this without knowing the name in
advance. I then used the following expression: <td>Name:</td>
\s*<td>([a-zA-Z_$][a-zA-Z0-9_$]*)</td>
and I didn't get a thing.
Shouldn't the "([a-zA-Z_$][a-zA-Z0-9_$]*)" part match any word or
symbol and then the * make it multiple words or symbols? Any light
that could be shed on this situation is appreciated. I don't
necessarily want the answer to my quandry, but insight as to what I am
doing wrong.
Thank you,
-Sean
taken a bit of a tumble.
I have the following (dummy) data:
<td>Name:</td> <td>Kherie Kali</td>
If I use this expression: "<td>Name:</td>\s*<td>Kherie Kali</td>"
I indeed get a match.
The next step I took is to get this without knowing the name in
advance. I then used the following expression: <td>Name:</td>
\s*<td>([a-zA-Z_$][a-zA-Z0-9_$]*)</td>
and I didn't get a thing.
Shouldn't the "([a-zA-Z_$][a-zA-Z0-9_$]*)" part match any word or
symbol and then the * make it multiple words or symbols? Any light
that could be shed on this situation is appreciated. I don't
necessarily want the answer to my quandry, but insight as to what I am
doing wrong.
Thank you,
-Sean