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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T05:17:52+00:00 2026-06-01T05:17:52+00:00

my text is : <Parag 1 Lev=All> text All </Parag1> <Parag 2 Lev=That> text

  • 0

my text is :

<Parag 1 Lev="All">
text All
</Parag1>
<Parag 2 Lev="That">
text That
</Parag2>
<Parag 3 Lev="Com">
text Com in tag 3
</Parag3>
<Parag 4 Lev="All">
text All
</Parag4>
<Parag 5 Lev="All">
text All
</Parag5>
<Parag 6 Lev="Com">
text Com in tag 6
</Parag6>
<Parag 7 Lev="That">
text That
</Parag7>

1- How can I get text between tags with Lev=”Com” with regular expression ? for example : text Com in tag 3 or text Com in tag 6

Please change my Expr : ("Com">)[\d\D]+(</)

2- How can I get tags with regular expression ? for example : <Parag 1 Lev="All"> or </Parag1> or <Parag 3 Lev="Com"> or </Parag3>

Please change(or merge) my Exprs : (<Parag.*?>)(</Parag.*?>)

Thank’s.

  • 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-01T05:17:53+00:00Added an answer on June 1, 2026 at 5:17 am

    Your pattern could be:

    "Com">([^<]+)</
    

    The text will be in group 1. Depending on your pattern tool you may need to allow pattern matching over endlines:

    Pattern.compile("your pattern",Pattern.DOTALL);
    

    Second question:

    <Parag([^>]+)>|</Parag([^>]+)>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have text that starts with (parag1 level=All) as start tag and end with
My text is in a richtextbox: <Parag1 Level=One> First text of parag1. Second text
text = urllib.urlopen('www.text.com').read() frase = re.search(your text here(.*), text).group() With these code, I get
Here is my code: $ParagArray=array('\r\n\r\n','\n\r\n\r','\r\r','\n\n'); foreach ($ParagArray as $value){ $chunks=(mb_split($value,$text)); $text=implode ((PARAG),$chunks); } echo
I want to find all bold text in a para and wrap them in
<html> <head> <title>Testing AJAX</title> <script type=text/javascript src=//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js></script> <script> function init() { $(#form1).submit(submitForm); } function
i have a html text like this: <div id=content> <p>para1</p> <p>para2</p> <p>para3</p> <p class=break>para4</p>
text = I fixed bug #1234 and #7895 regex = /#(\d*)/ m = regex.match(text)
Text gets accumulates piecemeal before being sent to client. Now we use own class
Text in the sidebar is not showing on load in Chrome or Safari at

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.