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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T11:13:54+00:00 2026-06-16T11:13:54+00:00

Example: Alex is my name! I wan’t to assign in variable for the first

  • 0

Example: Alex is my name!

I wan’t to assign in variable for the first word that end with letter “x”.

What jquery code to use? your help will be appreciated.

  • 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-16T11:13:55+00:00Added an answer on June 16, 2026 at 11:13 am

    The following regular expression will match a word ending with “x”:

    var firstX = /\b\w*x/;
    

    If you run that on some text, the result will contain the word:

    var match = firstX.exec(someText);
    var word = match ? match[0] : null;
    

    If you want that word, and then the rest of the string following it:

    var firstX = /\b(\w*x)\b(.*)$/;
    var match = firstX.exec(someText);
    var word = match ? match[1] : null;
    var theRest = match ? match[2] : null;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My current code is this $swift = email::connect(); $swift->setSubject('hello') ->setFrom(array('alex@example.com.au' => 'Alex')) ->setTo(array('alex@example.com.au' =>
Let me start from a real life example: Customer: Alex, just noticed something strange
Consider the example: IList<string> _lstColl = new[] { Alex, Sam, Gates, Riaz }; I
Example CSS #wrap{margin:20px} Code prettify wraps the whole line in .com <span class=com>#wrap{margin:20px}</span> Somebody
I could use some help assigning to a global C variable in DLL using
How can I list the author of a category? For example: CAT NAME: INTERNET
I have two tables: contacts: id, name 1 Alex 2 John documents: id, contactID,
<?php session_start(); $_SESSION['name'] = 'Alex'; ?> Is a PHP session varriable the session ID
I am attempting to use Alex Gorbatchevs Syntax Highlighter in conjunction with a variety
Ruby code: a = OpenSSL::HMAC.digest('sha1', 'secret', 'example') and then: Base64.encode64(a).chomp yields aMp6Zw1+hHVMmwWXoFp/Aaipc20= iPhone: +

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.