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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T10:54:18+00:00 2026-05-24T10:54:18+00:00

/<%(?:==|=|#)?[^>]*%>/; This regex isn’t exactly right for my needs. The [^>] part should be

  • 0
/<%(?:==|=|#)?[^>]*%>/;

This regex isn’t exactly right for my needs. The [^>] part should be no pattern of '%>'

This are the available regex-features:
http://docs.kde.org/stable/en/kdebase-runtime/kate/regular-expressions.html

(there is no ? for greedy quantifiers)

  • 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-24T10:54:19+00:00Added an answer on May 24, 2026 at 10:54 am

    The doc you linked to says lookaheads are supported, so this should work:

    /<%(?:==|=|#)?(?:(?!%>).)*%>/
    

    (?:(?!%>).)* allows the dot to match one character at a time, after the lookahead ensures that the character isn’t the beginning of a %> sequence. That’s effectively what the non-greedy dot-star would be doing in .*?%>, if non-greedy quantifiers were supported.

    By the way, the (?:==|=|#)? isn’t really doing anything for you. If that part is supposed to be required, you should remove the ?. If not, you might as well remove the whole thing; it’s just taking up space.

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

Sidebar

Related Questions

I've created this regex (www|http://)[^ ]+ that match every http://... or www.... but I
This regex isn't valid in JavaScript. It says there is an invalid group. Can
How do I modify this regex so that 0 isn't matched, but the number
Why isn't this regex working? find ./ -regex '.*\(m\|h\)$ I noticed that the following
why isn't this regex working: find ./ -regex '.*[mh]$' | sort | grep --exclude=UnitTests
This is the current text that i've but the regex isn't correct to split
I'm trying to understand what's wrong with this regex pattern: '/^[a-z0-9-_\.]*[a-z0-9]+[a-z0-9-_\.]*{4,20}$/i' What I'm trying
Why this regex: [^\s]+ ...says that this string: user's extension isn't exact match?
Here is our current regex: RewriteRule ^share/([a-zA-Z0-9-]+)/([a-zA-Z0-9-]+)/?$ /v.php?v=$1&hash=$2 [L] This isn't allowing underscores _
This regex: ^((https?|ftp)\:(\/\/)|(file\:\/{2,3}))?(((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3} (25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?))|(((([a-zA-Z0-9]+)(\.)?)+?)(\.)([a-z]{2} |com|org|net|gov|mil|biz|info|mobi|name|aero|jobs|museum))([a-zA-Z0-9\?\=\&\%\/]*)?$ Formatted for readability: ^( # Begin regex / begin

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.