Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3335654
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T00:02:36+00:00 2026-05-18T00:02:36+00:00

I have a question describd below: I have UITextView showing following content: Maybe it’s

  • 0

I have a question describd below:

I have UITextView showing following content:

Maybe it’s because he doesn’t settle.
[Give funny anecdote about something the groom did not settle
for. It should not be related to
dating or marriage.]
Or maybe it’s
something else. I can’t put my finger
on it, but I just never saw him
settling down.

Well, one day that all changed.
[Tell story about how the groom met the bride and what he told you after
they met.]
Yes, meeting [bride’s
name]
changed everything.

[Groom’s name] stopped sounding picky and started sounding interested.
He knew that what he had in this woman
was amazing―like nothing he had ever
experienced before. After mere weeks,
he was deeply in love; and there was
no way out.

And you know what? He never turned
back. And here he is today with his
beautiful bride. Could there be a more
perfect match?

So let that be a lesson to all of you
loveless old maids here tonight. No
matter how bad you think your
situation is, it can’t be as bad as
[groom’s name]‘s; and he ended up with what he wanted most.

And with that, I will close.
[Groom’s name] and [bride’s name], you two are both amazing
people. Alone, you can accomplish
great things. Alone, you are funny,
intelligent, charming people.

Now have a look on the strings written between “[]”, (square brackets). Initially, this text will in non editable format. I have a button on the top of the screen named as “Edit”. Now what I have to do, When I click on the “Edit” button, there should pop ups showing text fields and when I enter data in the text fields then that text will replace the strings written between the “[]”. For example, in above text there is a string “[Groom’s name]” so when I Tap on the edit button then there will be pop up asking me “Enter the name of Groom”, When I enter the name of groom in the text field then that name will replace the “[Groom’s name]” with the text written by me in the textfield. For each strings written between the “[]” there should be a popup. Now my question is how I will track these square brackets and after that how will I replace them with the text entered by me in text field.

If I m clear then u will understand that in the above text I have to replace all the strings in bold italic format.

If I am not clear on any point please let me know. Thanks in advance

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T00:02:36+00:00Added an answer on May 18, 2026 at 12:02 am

    With NSString you can do that (combining -rangeOfString and – stringByReplacingCharactersInRange:withString:)

    But don’t hesitate to use RegexKitLite, then you’ll have access to the power of regular expressions


    Some clues to do that with NSString :

    1. search [ and get it position
    2. search ] and get it position
    3. get the string in this range
    4. replace characters in this range with the string you prompted
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a question which is described below: What problems would arise for testing
I have a question regarding the code found in the Apple documentation Moving content
I have the below question, and would like to know if I have interpreted
I have a question regarding inheritance, so I will describe the scenario below: I
I have the same question problem as described here How to purge a cached
This question is hard to describe succinctly, so bear with me. Currently I have
Thanks for viewing my question. Let me describe the app first. I have a
I have question about parsing in Html helper : I have sth like: @foreach
I have question. I have some app on facebook and getting this error Fatal
I have question about clean thory in Python. When: @decorator_func def func(bla, alba): pass

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.