i want to searc a specific part in a string and change it for example
(hello(world(how are you)today )are u fine)
i want to change all are's with A
result
(hello(world(how A you)today )A u fine)
how can i do such a thing?
i want to searc a specific part in a string and change it for example
(hello(world(how are you)today )are u fine)
i want to change all are's with A
result
(hello(world(how A you)today )A u fine)
how can i do such a thing?
Well, you could start with using strstr() to find the first occurence of one string within another.... that might help.
When all else fails, read the instructions.
If you're posting code, use code tags: [code] /* insert code here */ [/code]
Take cA that you don't replace things that A needed to form whole words.
Quzah.
Hope is the first step on the road to disappointment.
i m sorry but i can not understand u
Look up how to use the function strstr(). In short, it finds the first occurence of one string within another. Understand how to use this function, and you will be on the way to solving your problem.Originally posted by Unregistered
i m sorry but i can not understand u
When all else fails, read the instructions.
If you're posting code, use code tags: [code] /* insert code here */ [/code]