Regular Expression, find and replace using Dreamweaver Reg expression - dreamweaver

I was wondering why i am not able to achieve that, really looking for help,
wanted to find and replace using dreamweaver Cs6 regular expression.
Find this mssql_fetch_row($notchange)
& replace with this
sqlsrv_fetch_array($notchange, SQLSRV_FETCH_NUMERIC)
Please help me i am using this but it searching full word but i want $nochange is not searchable
^mssql_fetch_row\(\)$
I only want whole code should get change except $nochange variable not change it remain as it is
^mssql_fetch_row\(\)$

Related

search for pattern in text using wildcards and automatically export the matches

I've been trying to use Thunderbird with expression search and ImportExportTools Add-on to look for a specific pattern in my emails, which worked to some degree at least. But now I'm unable to create a rule which would export the matches (and not any text before and after the pattern I searched for). I also tried using Libreoffice Calc but it's taking much longer to search and freezes doing so plus it also marks the whole line in which the pattern I searched for is found. I'd be really glad if anyone could help me out by suggesting a way to achieve my goal!
Expresso by Ultrapico Editor regex search does the trick

sublime 3 inactive selection tag

I am in middle of modifying Monaki theme, I want to change color of inactive select. when I double click something sublime automatically highlight other occurrence of the word in the document.
I am aware of caret but caret is just the border, what i want to achieve is to change the background of caret.
I searched a lot but couldn't find any documentation to list these tags and valid input for them.
I also tried inactiveSelection but had no luck with it.
so I have two questions.
first, how can I achieve this and change the color of the auto select?
second, is there any documentation out there that I can read about all the valid key/strings.
for example, in code bellow
<key>bracketContentsForeground</key>
<string>#16F24D</string>
<key>bracketContentsOptions</key>
<string>foreground underline</string>
how can I know <key>bracketBackground</key> is a valid code or what about <key>bracket</key> ? or <string>foreground underline</string> is there any other value that i can put inside the <string>? I see many ppl modifying the themes, but i can't find the source that they are learning from. I don't mind if I need to read inside the code to see what is the available tag, but I don't know to read which file.
selection key and inactiveSelection key
e.g., for monokai.tmTheme
selection string try #343400
inactiveSelection try #341700

Misspelled, wierd split words search in XSLT & Umbraco

Is it possible in XSLT to search and find content, even though the content is misspelled or the words splitted up - even though it shouldn’t?
Example:
I need to find a webshop called bearshop.com, but I search it like this “bear shop”. This will end in a “no results”.
Another example:
I search “progresive” but the right word was “progressive”, and this will end in a “no result” as well.
The most important part is the first example, where the search can be written with or without white spaces and still find the content. Hope someone can help me or lead me in the right direction :)
Kind regards,
Niels
If you are looking for a general way of matching similar words, this is often called fuzzy search and can quite easily be done with Umbraco and Examine.
There may even is a way to use this with XSLT, though I never tested that.
Assuming XSLT/XPath 2.0 you can use //foo[matches(., 'bear\s*shop')].

notepad++ how to convert to typing assistant like?

I was using notepad++ to create a report and its taking a quite a while for me to type and do so.
Well i had tried a software called typing assistant it was really good(except for the money part :D).
TO the Point :
is there any way tat i can link a dict(text file of words) and use notepad ++ as typing assistant please tell me if so i
can speed my report.
Cause i am a programmer too so i really like the keyword completion and stuff .But is there a way to use it for text ?
already tried Phrase Express -.-:
Takes long and its kinda for macro text and text completion don't work tat fast for me to tab and complete
if there's a question in the form like mine link me to tat :
i searched it and i didn't get it
Yes, you can set up your own custom auto-complete dictionaries in notepad++. You need to create an xml file with your language name and put it under the plugins/APIs directory in notepad++. Of course this assumes you know how to write xml. There's a formal description of how to implement this here.
I've never tried to create an auto-complete dictionary for plain text files, so I'm not sure if it's possible, but I have successfully created them for user-defined languages, which you could also do if you can't get it to work with text files.
I'm not sure if this question is really a duplicate, but here is a very similar one, which may help you in your research.

How to replace/remove specific strings from html file using Notepad++?

I've export my bookmarks from FF in to a html file but it's too huge and complicated, so I need to remove some firefox lines from it to make it more lighter and plain.
I can replace basic things in the Notepad++ but I guess I do need some operators for this and I have no idea how to make it work right.
For example here is the line from the file containing a link to Logodesignlove :
Logo Design Love
I need to remove all those tags I don't care about, like LAST_MODIFIED="1256428672", ICON_URI="bunch of digits" ICON="bunch of characters" etc.
And of course I need to remove all those tags in every link in the list.
So I was thinking like use something like "Find all tags LAST_MODIFIED="anynumbers" and replace it with nothing/remove it" - it doesn't work though.
Examle how it should like:
Logo Design Love
So far I removed LAST_MODIFIED and ADD_DATE lines thanks to Aleksandr. So LAST_MODIFIED="\d+" worked just fine. But ICON and ICON_URI are still there. I've tried ICON="\w+" - but it doesn't work. I guess it has something to do with the slashes.
Why look for what you don't want when it's easier to keep hold of what you do want and drop the junk?
(<A HREF=".*?").*?(>.*?>)
with
$1$2
Code edited to suit Notepad++ now I know it doesn't need the special chars escaped. Thanks Aleksandr.
Read up on using regular expressions (the java regex tutorials are a good start http://docs.oracle.com/javase/tutorial/essential/regex/), and try one of the online regex tools to help write and test it, such as this one http://gskinner.com/RegExr/
Eg, remove "LAST_MODIF..." with the regex LAST_MODIFIED="\d+"
Otherwise, you may want an XML-specific tool, or even write an XSL. However, I don't know much about that.

Resources