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:
after that there is a
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):
extract the number that comes next (it ends with a "/")
and then extract the number that comes next to the "/"
it ends with a:
___________________________________________________
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):
or it there may also be:
and there will be:
I hope I made myself clear enough
Edit:
I have aldeady tryed using the coding like:
[0-9] , .^?
but I cannot fully understand it...
Edit:
Why noone is answering?
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
- Praça de Torneios
<td style="padding-top:4px;">
extract the number that comes next (it ends with a "/")
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:
the program will output:title="Celeiro nível 7"
and there will be:
the program will output:<td style="padding-top:4px;">5971/9000</td>
and there will be an other output:5971
9000
I hope I made myself clear enough
Edit:
I have aldeady tryed using the coding like:
[0-9] , .^?
but I cannot fully understand it...
Edit:
Why noone is answering?
Last edited: