dcsimg
www.webdeveloper.com
Results 1 to 2 of 2

Thread: Need RegExp on the String

  1. #1
    Join Date
    Feb 2014
    Posts
    1

    Need RegExp on the String

    Hi Everyone,

    This is Vijay and I need reg expression on the below mentioned word.

    Example:

    ISBN: 978-0-596-80252-3

    Reg Expression was

    reISBN=/(ISBN[\:\=\s][\s]*(?=[-0-9xX ]{13})(?:[0-9]+[- ]){3}[0-9]*[xX0-9])|(ISBN[\:\=\s][ ]*\d{9,10}[\d|x])/g;


    Reg Expression need......

    School Code: 12345678

    reScode=?

    Any help would be much appriciated.

    - yajiv

  2. #2
    Join Date
    Oct 2010
    Location
    Versailles, France
    Posts
    1,276
    This regular expression rescode=/\b[\d]{8}\b/g capture all 8 digits between two word boundaries (\b) in a text.

    Use rescode=/School Code[:\s]+[\d]{8}\b/g to capture the entire motif.
    Last edited by 007Julien; 02-19-2014 at 06:23 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles