help wityh regular expression

Results 1 to 2 of 2

Thread: help wityh regular expression

  1. #1
    Join Date
    Dec 1969

    Default help wityh regular expression

    help anyone.<BR>i am trying to build a search and replace fetaure in my website. I was wiondering what would be th regular expression for a pattern that you want to search in a partiular string wherein the string that you found the pattern in would be the one to be returned. that is...<BR><BR>strsearch = "ust"<BR>string = "custom"<BR><BR>should return " custom"

  2. #2
    Join Date
    Dec 1969

    Default Untested...

    /([a-z]*ust[a-z]*)/i<BR><BR>Or, if using VBS, <BR><BR>"([a-z]*ust[a-z]*)"<BR>and then ignore case<BR><BR>Give it a shot?<BR><BR>

Posting Permissions

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