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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T03:00:55+00:00 2026-06-13T03:00:55+00:00

In WordPress generated pages, there is the following meta tag: <meta name=generator content=WordPress 3.4.2

  • 0

In WordPress generated pages, there is the following meta tag:

<meta name="generator" content="WordPress 3.4.2" />

I’m looking for a way to easily extract, “3.4.2” (in the above example)

Would using XmlDocument or Regular Expression be faster?

I found JSoup, but that’s overkill for what I’m trying to do.

EDIT

Just to clarify – I don’t want to include any external libraries.
Also, this is running in a class library, so using powershell isn’t going to be an option either.

  • 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-13T03:00:56+00:00Added an answer on June 13, 2026 at 3:00 am

    As you’re not trying to match paired tags or anything, a regular expression should be fine. Just search for content="WordPress (\d\.\d\.\d) or similar. (If it’s really consistent, you could search for the whole meta tag.)

    Trying to parse an HTML page as an XmlDocument might not work out; not all valid (or browser-supported) HTML is valid XML.

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

Sidebar

Related Questions

Wordpress's datamodel provides extensibility through it's meta tables (aka, wp_postmeta, wp_commentmeta, wp_usermeta). This name/value
I have a wordpress-generated page where I need some posts (in a specific category)
I want to add custom attribute settings to a generated anchor link of Wordpress.
I'm looking to target the wordpress syntax highliter with css to change the default
I am trying to add this code, generated by a WordPress plugin, to the
Client is requesting functionality which would allow WordPress to generate list of child pages,
I'm working with WordPress and 2 different plugins (Icons per post & pages and
I'm getting into wordpress and I've been following some pretty good tutorials and reading
I am plannig to set up something similar to the following: https://wordpress.stackexchange.com/questions/6109/how-can-i-lock-down-an-old-wordpress-install-i-dont-intend-to-update Basically the
I am trying to make a print newspaper that is easily generated from my

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.