hi,
I'd like to make a code in order to search for keywords in a huge text.
It works like this:
I prompt for a big text from the user.
the program must find the exact text:
then a number between 0 and 20.title="Paliçada nível
after that there is a
Also, the text may not exist, if that happens it just ignores it."
where is "Paliçada" it may also be:
"Muralha" or
"muro de terra"
I'd like to make the same code but also to search for (instead of paliçada):
- Palácio
- Celeiro
for the last I'd like it to search for:
- Praça de Torneios
extract the number that comes next (it ends with a "/")<td style="padding-top:4px;">
and then extract the number that comes next to the "/"
it ends with a:
__________________________________________________ _</td>
In order to try to make this more easy to understand it's better to make an example:
in text there will be (between other text):
the program will output:title="Paliçada nível 20"or it there may also be:20
the program will output:title="Celeiro nível 7"and there will be:7
the program will output:<td style="padding-top:4px;">5971/9000</td>and there will be an other output:5971I hope I made myself clear enough9000
Edit:
I have aldeady tryed using the coding like:
[0-9] , .^?
but I cannot fully understand it...
Edit:
Why noone is answering?


LinkBack URL
About LinkBacks
Reply With Quote



