Search and Replace question
-
- Sr. Propeller Head
- Posts: 122
- Joined: Wed Mar 07, 2007 9:16 am
- Location: Quebec City
Search and Replace question
Is there a way when you do a search and replace in the whole project to automatically replace without having to click for each topic?
-
- Propellus Maximus
- Posts: 1985
- Joined: Tue Jan 23, 2007 8:18 am
- Location: Darn, I knew I was around here somewhere...
Re: Search and Replace question
After you start the search and it finds it's first instance, click the Replace in All Files button.
Until next time....
Kevin Amery
Certified MAD for Flare
Kevin Amery
Certified MAD for Flare
Re: Search and Replace question
Regular expressions and wildcard documentation required.
Anyway since there aren't much writeup's about this, have a look at this. Its very usable in Flare for Search and Replace
http://www.regular-expressions.info/
When you do your search in Flare, remember to select Regular Expressions or the search won't work.
Anyway since there aren't much writeup's about this, have a look at this. Its very usable in Flare for Search and Replace
http://www.regular-expressions.info/
When you do your search in Flare, remember to select Regular Expressions or the search won't work.
If you submit your bug feedback request here, the more likely it'll get fixed or included in a future release
Open Utilities PageLayout Resizer for Flare/Blaze | Batch builder
Open Utilities PageLayout Resizer for Flare/Blaze | Batch builder
Re: Search and Replace question
Yep, adding something to the help to say what wildcards or regular expressions would be good.
I'm going to have to set some time aside to look at that site properly, I've looked at it twice and couldn't follow it!
I'm going to have to set some time aside to look at that site properly, I've looked at it twice and couldn't follow it!
Re: Search and Replace question
Have a look at the examples.Dave Lee wrote:Yep, adding something to the help to say what wildcards or regular expressions would be good.
I'm going to have to set some time aside to look at that site properly, I've looked at it twice and couldn't follow it!
If you submit your bug feedback request here, the more likely it'll get fixed or included in a future release
Open Utilities PageLayout Resizer for Flare/Blaze | Batch builder
Open Utilities PageLayout Resizer for Flare/Blaze | Batch builder
Re: Search and Replace question
Yep, I did, I think it'll just take me a while to understand them!Have a look at the examples.
Re: Search and Replace question
Copy and paste
Then modify the given example ...see Grabbing HTML Tags
change tag with a real html tag
Then modify the given example ...see Grabbing HTML Tags
Code: Select all
<TAG\b[^>]*>(.*?)</TAG>
If you submit your bug feedback request here, the more likely it'll get fixed or included in a future release
Open Utilities PageLayout Resizer for Flare/Blaze | Batch builder
Open Utilities PageLayout Resizer for Flare/Blaze | Batch builder
Re: Search and Replace question
Yep, I got that far, I just need to make some quite complex ones that'll require some homework.
Re: Search and Replace question
I discovered recently that I would like to replace a block of text (code) in Flare. Unfortunately the search and replace is a line by line searcher. It doesn't search more than up to the EOL (end of line). So i wouldn't be able to create a regular expression to replace a block of text. alas.
If you submit your bug feedback request here, the more likely it'll get fixed or included in a future release
Open Utilities PageLayout Resizer for Flare/Blaze | Batch builder
Open Utilities PageLayout Resizer for Flare/Blaze | Batch builder
Re: Search and Replace question
If the block of text is always the same, then Analyzer will detect the duplicate text and will recommend it be converted into a snippet which will then replace the regular text. At that point you could edit the snippet and it will filter to all instances of it in the project.
BTW, in Flare, if you tell it to search in source code, then it searches in the source code for the page instead of the content only as it appears in the XML Editor. So it won't stop at the end of the line like it might in the XML Editor, but it will stop at a tag (unless you include the tag in the search parameters). So if you're replacing one long line of text (or even a paragraph), then you should be able to do it in Flare, so long as you tell it to search in the source code.
Note... I've never searched for a block of text, so I'm not sure if Flare's find field has a character limit.
BTW, in Flare, if you tell it to search in source code, then it searches in the source code for the page instead of the content only as it appears in the XML Editor. So it won't stop at the end of the line like it might in the XML Editor, but it will stop at a tag (unless you include the tag in the search parameters). So if you're replacing one long line of text (or even a paragraph), then you should be able to do it in Flare, so long as you tell it to search in the source code.
Note... I've never searched for a block of text, so I'm not sure if Flare's find field has a character limit.
Lisa
Eagles may soar, but weasels aren't sucked into jet engines.
Warning! Loose nut behind the keyboard.
Re: Search and Replace question
I believe it doesnt search beyond a line. You got it right i am searching to replace a chunk of text in the source code. Replacing a paragraph of 'content' text isn't a problem.
If you submit your bug feedback request here, the more likely it'll get fixed or included in a future release
Open Utilities PageLayout Resizer for Flare/Blaze | Batch builder
Open Utilities PageLayout Resizer for Flare/Blaze | Batch builder
Re: Search and Replace question
I am trying to use the Find and Replace functionality to search through all of the files in the project to replace specific character tags, for example, find: "frontpanel" replace with: "bold". I selection Find in (whole project), and when I then click find next, the editor tells me it needs to open in text view (because I'm asking to search source code", but it will not search the entire project. I get the message "Recahded the end of the search", however I know for a fact that this text is contained in many other files, but it doesn't seem to look. Why is this? Is there any way to do a full search and replace function on the source?
-
- Propellus Maximus
- Posts: 1985
- Joined: Tue Jan 23, 2007 8:18 am
- Location: Darn, I knew I was around here somewhere...
Re: Search and Replace question
There is a pulldown that by says "Current Topic": change it to "Whole Project". You'll also need to use the Replace in All Files button.
Until next time....
Kevin Amery
Certified MAD for Flare
Kevin Amery
Certified MAD for Flare
Re: Search and Replace question
neeirish wrote:....specific character tags, for example, find: "frontpanel" replace with: "bold". I selection Find in (whole project), and when I then click find next, the editor tells me it needs to open in text view (because I'm asking to search source code", but it will not search the entire project. I get the message "Recahded the end of the search", however I know for a fact that this text is contained in many other files, but it doesn't seem to look. Why is this? Is there any way to do a full search and replace function on the source?
I assume the text you want to modiy is found in the 'topic' source code. Easy 1,2,3. Otherwise in Find and Replace pane, change the 'File types' option
Click Start to locate instances in your projects.
If any instances are found, the summary of results are shown. If none are shown try changing Find to '*fronpanel'. Enable wildcards.
Then click Replace or Replace All.
The picture below should help summarize the discussion going on in all the posts.
You do not have the required permissions to view the files attached to this post.
If you submit your bug feedback request here, the more likely it'll get fixed or included in a future release
Open Utilities PageLayout Resizer for Flare/Blaze | Batch builder
Open Utilities PageLayout Resizer for Flare/Blaze | Batch builder
Re: Search and Replace question
Yep, you need to click Start.
This caught me out too when I first used it, it is really unintuitive.
This caught me out too when I first used it, it is really unintuitive.