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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T20:04:22+00:00 2026-06-10T20:04:22+00:00

I have a Regex in AS3. Until now it’s been working, but now I

  • 0

I have a Regex in AS3. Until now it’s been working, but now I would like to disclude a phrase from the beginning. Specifically, the original was:

var pattern:RegExp = new RegExp(keyword,'/gi');

I’m trying to do something along the lines of:

var pattern:RegExp = new RegExp(!'<a href=\"event:' + keyword,'/gi');

Where

baaah

would work, but

<ahref="event:baaah

would NOT work.

Please help! What is the proper syntax to implement in my code.

  • 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-10T20:04:23+00:00Added an answer on June 10, 2026 at 8:04 pm

    check out this follows.

    var myPattern:RegExp = /(?<=<a href='event:).+/;   
    var str:String = "<a href='event:baaah";
    var result:Array = myPattern.exec(str);
    trace(result[0]); //baaah
    

    I strongly recommend : Regular_expression

    Assertions

     - foo(?=bar)   Lookahead assertion. The pattern foo will only match if
       followed by a match of pattern bar.
    
     - foo(?!bar)   Negative lookahead assertion. The pattern foo will only
       match if not followed by a match of pattern bar.
    
     - (?<=foo)bar  Lookbehind assertion. The pattern bar will only match if
       preceeded by a match of pattern foo.
    
     - (?<!foo)bar  Negative lookbehind assertion. The pattern bar will only
       match if not preceeded by a match of pattern foo.
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this regex working but now need to allow numbers without the decimal
I have this regex working when I test it in PHP but it doesn't
I have a RegEx that is working for me but I don't know WHY
I have this regex ((.*?)(\(.*?\))|(.*?)) I would like to remove the | as i
I have some Regex, it looks like this: string regexForDrop = @^((%27)|'|(\-\-))\s*(d|%64|%44)(r|%72|%52)(o|%6F|%4F)(p|%70|%50)$; It works
I have regex as /^[a-zA-Z ]+$/ now I need to add support for unicode
I have this regex/javascript code: toReturn = toReturn.replace(/(\[url=)(.+)(\])(.+)(\[\/url\])/g, '<a target=\_blank\ href=\$2>\$4</a>'); But the problem
i have this regex string that i got from a website to pull emails
I have a question about regex/Python. Sorry if this topic has been discussed millions
I have a regex \([0-9]+|\-)\ which either takes a number or a hyphen. but

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.