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 8377651
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T15:43:37+00:00 2026-06-09T15:43:37+00:00

Below is an extract from my long text: As a young researcher, he is

  • 0

Below is an extract from my long text:

As a young researcher, he is required:
\n ÷ to read at least three theses\n ÷ to meet his tutor or supervisor 
once a week\n ÷ to join seminars\n

Now I would like to find any blocks starting with ÷ and ending with \n, and replace ÷ by ÷<font color="blue"> and \n by </font>\n. So, for example, my above extract would appear like this:

As a young researcher, he is required:
\n ÷<font color="blue"> to read at least three theses</font>\n ÷<font color="blue"> 
to meet his tutor or supervisor once a week</font>\n ÷<font color="blue"> to join seminars</font>\n

So far I have been using these Grep in TextWrangler to look for and replace:

(÷[^ \t/<>]*?).*?([^ \t/<>]*?\\n)

<font color="blue">\1\2</font>\3

The required blocks of text are successfully found, but replacing doesn’t work as I expect.

I’m using TextWrangler, but may have access to BBEdit or Notepad++.

Can you please help me to solve this problem? Thank you very much.


UPDATE

Thanks to DesertEagle, I have worked out the solution. Here is the code:

÷([^\\n]+)\\n
÷<font color="blue">\1</font>\\n
  • 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-06-09T15:43:39+00:00Added an answer on June 9, 2026 at 3:43 pm

    Though I don’t have textwrangler at hand, this should work for you [1]

    search
    /÷([^\n]+)\n/

    EDIT
    The correct syntax for textwrangler is
    ÷([^\\n]+)\\n

    replace
    ÷<font color="blue">\1</font>\n

    [1] please ensure proper escaping for your engine

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using the snippet below, I've attempted to extract the text data from this PDF
im trying to extract some files from a jar-file downloaded using java-webstart. below code
I am trying to extract the below query: select '<tr><td>'||column1||'</td>', '<td>'||column2||'</td>', '<td>'||column3||'</td></tr>' from table
I'm trying to extract the StateLongName and StateShortName values from the xml below. I
The code below will extract icon from file and convert it to png but
I’m using Linq to extract values from some XML. Shown below is a simplified
I am trying to extract columns from multiple text files(3000 files). The sample of
Below is the code i use to extract data from a table to a
I am running the below query to extract data from an xml column...question is
I have one view where I read json data. and extract keys from it.

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.