Information générale
Catégorie:
Codage, syntaxe et commandes
Won't work too well if the search string less than 50 characters in.......
>Tht's got it -
>Thank you all for the help
>
>>How about this.
>>? substr(string,atc('word',string)-50,100)
>>
>>>I am running into trouble finding a solution to this.
>>>
>>>I want to search inside a string of text to find a word.
>>>Once the word is found I want to back up say 50 characters.
>>>Then extract about a hundred characters forward from the 50 characters back position.
>>>The result would be a phrase of 100 characters with the seached word in the centre.
>>>
>>>PS - This is recreational programming - Nothing urgent going on :)
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement