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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T16:12:27+00:00 2026-06-17T16:12:27+00:00

I would like to skip the comments using javascript. I can only get the

  • 0

I would like to skip the comments using javascript. I can only get the reverse, meaning not skipping the comments. The following syntax:

#GSM settings\r\n   <----- Skip these
Apn internet\r\n
Pass \r\n
User \r\n
Pin \r\n
Dial *99#\r\n
KeepAlive 0\r\n
#ETH TEST\r\n                  <---- skip
Mac 00:60:37:12:34:56\r\n
EthIpv4 192.168.0.10\r\n
Subnet 255.255.255.0\r\n
Gwip 192.168.0.1\r\n
Autoip 0\r\n
  • 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-17T16:12:28+00:00Added an answer on June 17, 2026 at 4:12 pm

    I am not sure I understood 100%, if you want to match rows that are not starting with a “#”, you can do it like this:

    /^(?!#).*/
    

    This matches only if after the start of the string there is not “#” directly following.

    See it here at Regexr

    (?!#) is a negative lookahead assertion, that fails if there is a “#” following this position. Since it is after the ^ anchor, the whole expression will fail, if the first character is a “#”.

    If there can be whitespaces before the “#”, you can add them like this:

    /^(?!\s*#).*/
    

    See it here on Regexr

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

Sidebar

Related Questions

I would like to skip only a single test while launching mvn install .
I have an array of sprites called segments and I would like to skip
I would like to be able to skip over certain parts of my code
Would like to make anapplication in Java that will not automatically parse parameters used
I'm generating some statistics for some English-language text and I would like to skip
I would like to skip a few characters in a binary file between two
I would like to skip sending confirmation letter automatik. I would like to do
I would like rsync to skip entire directories if they contain a certain file
I would like to cancel a running UIView block animation and skip to the
I would like to skip a number of iterations of a foreach loop. I

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.