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

  • Home
  • SEARCH
  • 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 133377
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T06:25:17+00:00 2026-05-11T06:25:17+00:00

I have this html, and I want to replace the numeric value within value=##

  • 0

I have this html, and I want to replace the numeric value within value='##' with the value between <option>value</option>

For example: <option value='16'>Accounting</option>, I want to know the regex it’d take to automatically change it to <option value='Accounting'>Accounting</option>

I plan on doing it to this entire list.

<option value='16'>Accounting A.A.S.</option> <option value='15'>Accounting A.S.</option> <option value='33'>Art Studies</option> <option value='18'>Business Administration A.A.S.</option> <option value='17'>Business Administration A.S.</option> <option value='20'>Computer Network Technician</option> <option value='21'>Computer Support Specialist</option> <option value='40'>Criminal Justice A.A.S.</option> <option value='39'>Criminal Justice A.S.</option> <option value='37'>Criminal Justice: Corrections Certificate</option> <option value='41'>Criminal Justice: Cybersecurity</option> <option value='42'>Criminal Justice: Economic Crime</option> <option value='43'>Criminal Justice: Forensic Investigation</option> <option value='34'>Early Childhood</option> <option value='22'>Fashion Buying & Merchandising</option> <option value='35'>Fine Arts</option> <option value='23'>Health Services Management A.S.</option> <option value='24'>Health Services Management Technology A.A.S.</option> <option value='92'>Human Resource Management A.A.S.</option> <option value='44'>Human Services</option> <option value='25'>International Business</option> <option value='36'>Liberal Arts & Sciences: Childhood Education</option> <option value='49'>Liberal Arts & Sciences: Communication Arts</option> <option value='50'>Liberal Arts & Sciences: General Studies</option> <option value='52'>Liberal Arts & Sciences: Social Science</option> <option value='51'>Liberal Arts and Sciences: Humanities</option> <option value='26'>Marketing A.A.S.</option> <option value='27'>Medical Coder/Transcriptionist Certificate</option> <option value='45'>Music Industry</option> <option value='28'>Paralegal</option> <option value='46'>Photographic Technology</option> <option value='47'>Radio/Television Broadcasting</option> <option value='91'>Science A.S.</option> <option value='29'>Small Business Management</option> <option value='30'>Small Business Management: Certificate</option> <option value='48'>Teaching Assistant: Certificate</option> <option value='31'>Travel & Tourism: Hospitality & Events Management</option> <option value='32'>Website and E-Business Development</option> 

EDIT: I want to use GREP, within textwrangler

  • 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. 2026-05-11T06:25:18+00:00Added an answer on May 11, 2026 at 6:25 am

    Just remove the value attributes. <option> by default takes a value of it’s content.

    <option value='Accounting'>Accounting</option> 

    is equivalent to:

    <option>Accounting</option> 

    Edit: using sed you can do

    sed -r s/' value='[0-9]+''//g 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 124k
  • Answers 124k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Are you running on OS 3.0? I saw the same… May 12, 2026 at 1:19 am
  • Editorial Team
    Editorial Team added an answer It looks like you need to register Apache::Session::Memcached with Apache::Session::Wrapper,… May 12, 2026 at 1:19 am
  • Editorial Team
    Editorial Team added an answer Use DATENAME or DATEPART: SELECT DATENAME(dw,GETDATE()) -- Friday SELECT DATEPART(dw,GETDATE())… May 12, 2026 at 1:19 am

Related Questions

The original question is below, but I changed the title because I think it
I have a tag in my html like this: <h1>My Website Title Here</h1> Using
I have this HTML string which often has a lot of whitespaces Example: <p>All
I'm trying to achieve the following behaviour in html: user is presented with a

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.