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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T17:29:01+00:00 2026-05-16T17:29:01+00:00

Question What does it mean when a regular expression is surrounded by @ symbols?

  • 0

Question

What does it mean when a regular expression is surrounded by @ symbols? Does that mean something different than being surround by slashes? What about when @x or @i are on the end? Now that I think about it, what do the surrounding slashes even mean?


Background

I saw this StackOverflow answer, posted by John Kugelman, in which he displays serious Regex skills.

Now, I’m used to seeing regexes surrounded by slashes as in

/^abc/

But he used a regex surrounded by @ symbols:

'@
        ^%
        (.{2})          # State, 2 chars
        ([^^]{0,12}.)   # City, 13 chars, delimited by ^
        ([^^]{0,34}.)   # Name, 35 chars, delimited by ^
        ([^^]{0,28}.)   # Address, 29 chars, delimited by ^
        \?$
 @x'

In fact, it seems to be in the format:

@^abc@x

In the process of trying to google what that means (it’s a tough question to google!), I also saw the format:

@^abc@i

It’s clear the x and the i are not matched characters.

So what does it all mean???

Thanks in advance for any and all responses,

-gMale

  • 1 1 Answer
  • 2 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-16T17:29:01+00:00Added an answer on May 16, 2026 at 5:29 pm

    The surrounding slashes are just the regex delimiters. You can use any character (afaik) to do that – the most commonly used is the /, other I’ve seen somewhat commonly used is #

    So in other words, @whatever@i is essentially the same as /whatever/i (i is modifier for a case-insensitive match)

    The reason you might want to use something else than the / is if your regex contains the character. You avoid having to escape it, similar to using ” for strings instead of “”.

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

Sidebar

Related Questions

Naive question about Java syntax. What does <T> T accept(ObjectVisitorEx<T> visitor); mean? What would
I saw a regular expression says (?i) . So what does it mean when
Possible Duplicate: What does the question mark and the colon (?: ternary operator) mean
Very simple question. What does the term 'seeding' mean in general? I'll put the
Question from the one interview. Please explain what does this C++ code mean: void
Question:- Does java client need to worry about multiple servers ? Meaning:- I have
Simple question: does the Java memory/synchronization model guarantee atomic pointer writes? That is, if
I want to ask an very basic question about the iPhone application. what does
Possible Duplicate: jQuery question: what does it really mean? For example, (function (exports, $,
There is no day on SO that passes without a question about parsing (X)HTML

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.