Forum Moderators: open
Ok, there is going to be one form box, under it a button, and under the button another form box.
I want to have a user be able to type something in the top form box, for example 'The man walked down the street' and when you click the button, it will appear in the bottom form box exactly as it was typed in above, except all instances of 'the' will be changed to 'a' making it 'a man walked down a street'.
So the user would type in 'the man walked down the street' press the button, and it would come out in the below form box as 'a man walked down a street'. It would replace all instances of 'the' with 'a' no matter what the text in the above form box was.
Thanks.
When researching how to change "the" to "a", keep in mind case sensitivity (The, tHe, thE, etc.), that the string "the" can be parts of other words (theater, then, there, etc.), and what characters will be on either side of the string. Those considerations will practically require a regular expression.