ReFind question: is it possible to bridle this function? :)

Usually I have to make a loop to find a word using
ReFind(NoCase), changing start position inside on every step.
The question is:
is it possible to "bridle" ReFind function in order make it
return ALL occurences AT ONCE, using some special regular
expression.
For instance, ourString is "Our Rob is a robber of the Robson
bank"
and I want to find all inclusions of "rob"
I wish if
ReFindNoCase((something, but 'rob')*(rob)(something, but
'rob')*)*, ourString, 1, true)
would return all positions of 'rob' occurence here in pos and
len arrays....

not sure exactly what you are asking for, but, this is how,
in my support trouble ticket app, i return details of a user query
of a keyword from the knowledge base. in this example, it will
highlight all instances of the "keyword" in either the problem
field or the solution field. just make sure you have a session var
to start of with....
<cfif IsDefined("SESSION.USERFILTER.KEYWORD")>
<cfset replaceWhat = SESSION.USERFILTER.KEYWORD />
<cfset problem = trim(rsGetTicket.Problem) />
<cfset solution = trim(rsGetTicket.resolution) />
<cfloop list="#replaceWhat#" index="what" delimiters="
">
<cfset problem = replaceNoCase(problem,what," <span
style=""background:##6fff68;""> "&what&"</span>
","ALL")>
<cfset problem = replaceNoCase(problem,what," <span
style=""background:##6fff68;""> "&what&"</span>
","ALL")>
<cfset solution = replaceNoCase(solution,what," <span
style=""background:##6fff68;""> "&what&"</span>
","ALL")>
<cfset solution = replaceNoCase(solution,what," <span
style=""background:##6fff68;""> "&what&"</span>
","ALL")>
</cfloop>
<cfoutput>#ParagraphFormat(trim(problem))#</cfoutput></p>
<hr width="100%" size="1" noshade>
<p align="left"><cfif #rsGetTicket.Complete# IS NOT
"0">Solution:<br>
<cfoutput>#ParagraphFormat(trim(solution))#</cfoutput><br>
<br>
Tech:
<cfoutput>#rsGetTicket.CompletedBy#</cfoutput><cfelse>Solution
for this Issue has not been satisfactorily reached. <br>
If you have this issue, please submit a <a
href="sendtt.cfm">trouble
ticket</a>.<br>
</cfif></p></cfif>

Similar Messages

  • I want to buy iPhone 5 but i have one question that is i have just seen a video on youtube showing laser keyboard and holographic display. is it possible in iPhone 5 and if possible then whether this function is available in iPhone 5 or not...!

    Laser keyboard and holographic display

    There were some folks marketing a laser "keyboard" for computers a while ago. It is not beyond the realm of possibiity that somebody made one with a Bluetooth interface that could talk to an iPhone. It might well be beyond the average person's means to pay for it, though.

  • HT1373 See authorized computers - why is this question not answered?  Apparently, Apple wil not expose this information to the account owner.  Is is only possible to rate this article with 1-5 stars - not with zero stars?

    See authorized computers - why is this question not answered?  Apparently, Apple wil not expose this information to the account owner.  Is is only possible to rate this article with 1-5 stars - not with zero stars?

    Yep, you're right. Just 1-5 stars.

  • I wish to export several still images from iMovie as JPEG or TIFF. Is it possible to do this using iMovie, if so how? Any advice is greatly appreciated. I've already managed to add a freeze frame to extract the desired frame but I can't export it. Thanks.

    I wish to export several frames from iMovie as if they were images (like JPEGs or TIFFs). Is it possible to do this using iMovie, if so how? Any advice is greatly appreciated. I've already managed to 'add a freeze frame' to isolate the desired frames but I can't export it. Thanks.

    Ach... I found a solution thanks to previous posts which came to light after I'd posted what was obviously a question that had been asked before.

  • Technical question:  Is it possible to work on the same Lightroom catalog across two computers and have the catalog sync? If so, how??

    Technical question:
    Is it possible to work on the same Lightroom catalog across two computers and have the catalog sync? If so, how??
    Here's a little more information on what I am trying to do.
    I have a desktop computer with 4tb worth of pictures that has Lightroom and Photoshop on it. I also have a laptop with Photoshop and Lightroom. I would like to be able to edit those same pictures with their current edits that are currently on my desktop on my laptop. If this can be done, I'm sure I need to be on the same wifi network for my laptop to be able to access my desktop's photo library. I am technically savvy enough to map a network drive, but how do I get my two Lightroom catalogs to sync when I make a change on one of my computers? Would i be working only on one catalog? Or two separate catalogs that would need to be manually synced to the other computer? Would it be beneficial to put my lightroom catalog on something like dropbox?
    I'd appreciate any information or tutorials if someone knows how to do this.

    I do this by having my LR catalog and photos on an external drive that I swap between the two computers.  I am on Windows and have the same drive letter assigned to the drive on both computers.
    Because the photos are on a portable drive I back up the portable drive to another hard-drive every night or after important work, because portable drives are susceptible to damage or loss.

  • I attempted to import pics from iphoto to a folder on my desktop but somehow clicked desktop so 45,000 pics loaded, now computer freezes after trying to load everything.  possible to reverse this?  options?  restore hd from time machine?  pls help!!!

    long story short...i attempted to import pics from iphoto to a folder on my desktop but somehow clicked desktop so 45,000 pics loaded to my desktop and now my computer freezes up after trying to load everything, and i'm not able to just drag the photos into the folder.  is it possible to reverse this?  what are my options?  restore hd from time machine?  
    a further question to restoring my hd from a previous backup on time machine...it says it will erase the hd.  does it actually erase everything or does it just erase anything that may have been added or downloaded since that backup?  this is confusing to me.
    another problem which is part of the original problem is it seems that when i connect my iphone to my computer and iphoto uploads my pics...it doesn't just upload new ones, it duplicates and uploads every picture again...which is why i have 45,000 pics...they are 40,000 duplicates!  what's up with that? 
    I have a macbook pro, and recently updated the os to Yosemite.  the iphoto app is out of date, but i'll worry about that once i can figure out how to get all those pics off the desktop.  also, i recently purchased and installed 8g of new ram, but that hasn't seemed to help. 
    any advice would be appreciated! 
    thanks!!

    thanks for replying. 
    the booting and walking away and then attempting to browse and clean method is what i've been trying to do.  it won't let me drag and drop and just freezes up and goes to sleep after 2 minutes.  it's a never ending battle with very few results. which is why i questioned the method of just restoring the hd from a time machine backup.
    do you think restoring the hd from time machine will resolve the issue with all pics on the desktop?  and everything will be as it was from the date i restore it from?  sorry, as you can tell, i'm not overly computer savvy. 
    i have a really old desktop mac...i can try connecting the two...how does one boot a mac in 'target mode'? 
    as for the iphoto cleaning and organizing issue...that is what i was trying to accomplish with importing them to a folder.  was going to browse and clean from there...but somehow imported to desktop which is what's complicating everything.  once i get them off the desktop i can work on the iphoto issue...which as i mentioned...i didn't take 45,000 pics...i've just taken about 4,500 over the last few years, and they are being duplicated in iphoto.  this was my attempt to clean it out entirely and start over.  it will basically be a lot of deleting.
    one problem, seems to lead me to more...which is just my luck.  :-) 
    thanks again, for your help.

  • I forgot verification Asked Questions Is it possible to send the answers to my e-mail

    I forgot verification Asked Questions
    Is it possible to send the answers to my e-mail

    khalid
    This is not Apple. This is a user forum. We are users just like you.
    You will need to contact iTunes Support, http://apple.com/emea/support/itunes/contact.html (select Account Security as your help topic)
    Even after you reset your security questions, it is highly recommended you add a rescue email address. To do so, log in at appleid.apple.com and click on Password and Security. Answer the questions and then click on "Add Rescue Email Address:"

  • Mac OSX Server Question - Is it possible?

    Is this possible? If I get a Mac pro and have OSX Server on it and I have it in another part of our building and then I have say either Mac books or imacs in my office, can I run apps that are on the Mac Pro? at full speed of the Mac Pro? or would it be at the processing power of the laptop or imac? Basically its like a dummy station. I want the laptop to get all its info from the Server and Mac pro. Can that be done?

    It depends entirely on the application(s) in question.
    Some applications are designed this way from the get-go, especially UNIX-based applications that are either shell-based or use X-Windows to display their interface on a remote machine.
    Some applications (especially high-end video apps) use a network clustering model to spread the workload across multiple machines in the network. You create a task on your machine and it farms it out to available servers in the network.
    Other apps are designed for a single workstation use only. These apps might get you something similar through the use of Apple Remote Desktop (or similar) whereby you can see and interact with the remote machine in a window on your own - everything you do happens on the remote machine with screen updates sent over the network. While this will work for any application, the issue with this approach is network speed to manage the screen updates at an acceptable rate. You couldn't (or at least wouldn't want to) use this approach for games, for example, where the network latency wuld slow the full-screen nature of the game to just a few frames per second.
    So, can it be done? it depends. You'll need to be more specific about your goals in order to find a precise answer.

  • I just accidentally deleted my Adblock Plus, (which had my own customize blocking rules) is it possible to restore this ???

    Hi, Arrgh.. help!!
    So I just accidentally deleted my Adblock Plus, (which had my own customize blocking rules) is it possible to restore this ??? (i'm blaming it on my strawberry yogurt.. for distracting me cause it was so good.....*note to self.....do not eat strawberry yogurt while on computer.) ..sigh!
    It does seem that i still have a "adblockplus" file that is in my firefox profile files (though i guess that could be the file for the "Element Hiding Helper extension for Adblock Plus" which wasn't deleted.)
    . . .i would very much like to restore it, as i mentioned above i had many of my own customized blocking rules, along with rogue antivirus/security/software, phishing, malvertising, malware blocklist, etc..
    In the mean time i'm going to copy those "adblockplus" files that are in my firefox profile files (that i mentioned above) ..in a zip file on my desktop in case it goes missing, and go to "Adblock Plus" and add it along with a few of it's blocking rules for now.

    Hi Teagan, were you able to recover your rules?
    Many times, when you remove an extension, its preferences are left behind, so there's a good chance that reinstalling the extension will enable you to recover them. OR, it may reset them, which would be the opposite of what you want.
    Could you provide any advice for future users who have this question?

  • I am trying to find out if I can change a setting of the calendar in my iPhone.   When I view calendar, in month, I would like to view it with the starting day of the week being Monday, not Sunday.  Is it possible to make this change? SS

    I am trying to find out if I can change a setting of the calendar in my iPhone. 
    When I view calendar, in month, I would like to view it with the starting day of the week being Monday, not Sunday.  Is it possible to make this change?

    Hello SMEvans32
    You can use iCloud to share the Calendar, that way she will always be up to date on that particular section of your work calendar. If you want to use iCloud, I would recommend backing up so you have a safe copy of your data.
    iCloud: Calendar sharing overview
    http://support.apple.com/kb/PH2689
    iCloud Setup
    http://www.apple.com/icloud/setup/
    Thanks for using Apple Support Communities.
    Regards,
    -Norm G.

  • I'd like to transfer all of my songs from iTunes from my old laptop (windows) to a newer laptop (mac).  Is it possible to do this?  If so, how?

    I'd like to transfer all of my songs from iTunes from my old laptop (windows) to a newer laptop (mac).  Is it possible to do this?  If so, how?

    See Here...
    Move iTunes Library from PC to MAC
    http://www.macworld.com/article/146958/2010/03/move_itunes_windows_mac.html

  • I am looking for a simple app to enable me to crop a face from one pic to another(fun). is it possible to do this via iPhoto or aperture?

    i am looking for a simple app to enable me to crop a face from one pic to another(fun). is it possible to do this via iPhoto or aperture?

    No, you will need something more advanced, like Photoshop.

  • I own a MAC Pro 3,1 (early 2008) and am running Mavericks 10.9.3 with no problems. I would like to add an I/O card to add USB 3 functionality or ESATA functionality but am unable to find a compatible card. As such my question...can I do this and if so wha

    I own a MAC Pro 3,1 (early 2008) and am running Mavericks 10.9.3 with no problems. I would like to add an I/O card to add USB 3 functionality or ESATA functionality but am unable to find a compatible card. As such my question...can I do this and if so what is the best card?
    Thank you

    Have you looked at the previous discussions listed on the right side of this page under the heading "More Like This"?
    Also see:
    https://discussions.apple.com/thread/6282459?tstart=0

  • HT1339 my ipod shuffle(1st generation) is corrupted (error 1442) it will not restore.             is it possible to correct this or is it beyond repair. It worked the last time I used it on my laptop with Windows Vista. Vista.

    My ipod shuffle (1st generation) will not restore. It says it is corrupted(error 1442) Is it possible to correct this problem, or is it beyond repair. It worked last  time I used it on my laptop with Windows Vista. Any help would be much appreciated.

    Im actually tilting it up where it cinnects to my iPod, not where it connects to my computer, and i have tried three(yes, 3) different cables, one of which i bought brand new. still nothing, and i've also tried different USB ports on my computer,....nothing. Could this simply be a hardware failure of somekind? maybe a physical problem...i mean, why would i have to tilt the cable in order for my computer to actually read my iPod? im looking at the USB connector on my iPod (maybe it's my imagination, not sure) it possible might be bent, the little metal part in the port.

  • I cannot log into facebook. I get the following message: 404 Error - Not Found The resource you have requested could not be found on the server. There are many possible reasons for this. Either the file does not exist, there is an error in your request,

    I am not able to go to the facebook site. www.facebook.com is not working. I get the following error message. 404 Error - Not Found
    The resource you have requested could not be found on the server. There are many possible reasons for this. Either the file does not exist, there is an error in your request, or the file is not accessible in the requested directory. Please verify that:
    * You have used the proper case; requests ARE case-sensitive!
    * You have entered the URL correctly. (i.e. proper directory/filename)
    * You used the FULL URL. (i.e. proper file type: .html, .gif , .jpg, etc.)
    * You use a tilde (~) before user directories. (i.e. www.furcen.org/~jurann/ )
    * The user/file still exists on this server.
    I also get redirected to "Busca Google" when typing www.facebook.com in the address bar.
    == URL of affected sites ==
    http://facebook.com; buscagoogle.com

    I have the same problem and it does not have to do with firefox. Do you have any idea how to fix it through?

Maybe you are looking for